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 the
RuntimeLoggerFactoryImpl
for easy
RuntimeLogger
creation. See RuntimeLoggerFactoryImpl
on 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 protected
RuntimeLoggerFactorySingleton()
Instantiates a new runtime logger factory singleton. -
Method Summary
Modifier and Type Method Description static RuntimeLogger
createRuntimeLogger()
Convenience method actually delegating the call to the instance returned bygetInstance()
.static RuntimeLogger
createRuntimeLogger(String aIdentifier)
Convenience method actually delegating the call to the instance returned bygetInstance()
.RuntimeLogger
createRuntimeLogger(String aIdentifier, Map<String,String> aProperties)
Convenience method actually delegating the call to the instance returned bygetInstance()
.static RuntimeLogger
createRuntimeLogger(Map<String,String> aProperties)
Convenience method actually delegating the call to the instance returned bygetInstance()
.static RuntimeLoggerFactory
getInstance()
Returns the singleton's instance as fabricated by thisRuntimeLoggerFactorySingleton
.Methods inherited from class org.refcodes.logger.RuntimeLoggerFactoryImpl
createInstance, createInstance, createInstance, createInstance, fromConfigurationFile
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.refcodes.factory.TypeFactory
getType
-
Constructor Details
-
RuntimeLoggerFactorySingleton
protected RuntimeLoggerFactorySingleton()Instantiates a new runtime logger factory singleton.
-
-
Method Details
-
getInstance
Returns the singleton's instance as fabricated by thisRuntimeLoggerFactorySingleton
.- Returns:
- The
RuntimeLoggerFactory
singleton's instance.
-
createRuntimeLogger
Convenience method actually delegating the call to the instance returned bygetInstance()
. See alsoTypeFactory.createInstance()
.- Returns:
- the runtime logger
-
createRuntimeLogger
Convenience method actually delegating the call to the instance returned bygetInstance()
. See alsoTypeFactory.createInstance(Map)
.- Parameters:
aProperties
- the properties- Returns:
- the runtime logger
-
createRuntimeLogger
Convenience method actually delegating the call to the instance returned bygetInstance()
. See alsoTypeFactory.createInstance(Map)
.- Parameters:
aIdentifier
- the identifier- Returns:
- the runtime logger
-
createRuntimeLogger
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
-