- java.lang.Object
-
- org.refcodes.logger.RuntimeLoggerFactoryImpl
-
- org.refcodes.logger.RuntimeLoggerFactorySingleton
-
- All Implemented Interfaces:
org.refcodes.factory.LookupFactory<RuntimeLogger,String>,org.refcodes.factory.TypeFactory<RuntimeLogger>,RuntimeLoggerFactory,org.refcodes.mixin.TypeAccessor<RuntimeLogger>
public class RuntimeLoggerFactorySingleton extends RuntimeLoggerFactoryImpl
The singleton of theRuntimeLoggerFactoryImplfor easyRuntimeLoggercreation. SeeRuntimeLoggerFactoryImplon how to set up your "runtimelogger-config.xml" for your individual
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.TypeAccessor
org.refcodes.mixin.TypeAccessor.TypeBuilder<T extends Object,B extends org.refcodes.mixin.TypeAccessor.TypeBuilder<T,B>>, org.refcodes.mixin.TypeAccessor.TypeMutator<T extends Object>, org.refcodes.mixin.TypeAccessor.TypeProperty<T extends Object>
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRuntimeLoggerFactorySingleton()Instantiates a new runtime logger factory singleton.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RuntimeLoggercreateRuntimeLogger()Convenience method actually delegating the call to the instance returned bygetInstance().static RuntimeLoggercreateRuntimeLogger(String aIdentifier)Convenience method actually delegating the call to the instance returned bygetInstance().RuntimeLoggercreateRuntimeLogger(String aIdentifier, Map<String,String> aProperties)Convenience method actually delegating the call to the instance returned bygetInstance().static RuntimeLoggercreateRuntimeLogger(Map<String,String> aProperties)Convenience method actually delegating the call to the instance returned bygetInstance().static RuntimeLoggerFactorygetInstance()Returns the singleton's instance as fabricated by thisRuntimeLoggerFactorySingleton.-
Methods inherited from class org.refcodes.logger.RuntimeLoggerFactoryImpl
createInstance, createInstance, createInstance, createInstance, fromConfigurationFile
-
-
-
-
Method Detail
-
getInstance
public static RuntimeLoggerFactory getInstance()
Returns the singleton's instance as fabricated by thisRuntimeLoggerFactorySingleton.- Returns:
- The
RuntimeLoggerFactorysingleton's instance.
-
createRuntimeLogger
public static RuntimeLogger createRuntimeLogger()
Convenience method actually delegating the call to the instance returned bygetInstance(). See alsoTypeFactory.createInstance().- Returns:
- the runtime logger
-
createRuntimeLogger
public static RuntimeLogger createRuntimeLogger(Map<String,String> aProperties)
Convenience method actually delegating the call to the instance returned bygetInstance(). See alsoTypeFactory.createInstance(Map).- Parameters:
aProperties- the properties- Returns:
- the runtime logger
-
createRuntimeLogger
public static RuntimeLogger createRuntimeLogger(String aIdentifier)
Convenience method actually delegating the call to the instance returned bygetInstance(). See alsoTypeFactory.createInstance(Map).- Parameters:
aIdentifier- the identifier- Returns:
- the runtime logger
-
createRuntimeLogger
public RuntimeLogger createRuntimeLogger(String aIdentifier, Map<String,String> aProperties)
Convenience method actually delegating the call to the instance returned bygetInstance(). See alsoLookupFactory.createInstance(Object, Map).- Parameters:
aIdentifier- the identifieraProperties- the properties- Returns:
- the runtime logger
-
-