Package org.refcodes.logger
Class RuntimeLoggerFactorySingleton
- java.lang.Object
-
- org.refcodes.logger.RuntimeLoggerFactoryImpl
-
- org.refcodes.logger.RuntimeLoggerFactorySingleton
-
- All Implemented Interfaces:
org.refcodes.factory.LookupFactory<RuntimeLogger,java.lang.String>
,org.refcodes.factory.TypeFactory<RuntimeLogger>
,RuntimeLoggerFactory
public class RuntimeLoggerFactorySingleton extends RuntimeLoggerFactoryImpl
The singleton of theRuntimeLoggerFactoryImpl
for easyRuntimeLogger
creation. SeeRuntimeLoggerFactoryImpl
on how to set up your "runtimelogger-config.xml
" for your individual
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
RuntimeLoggerFactorySingleton()
Instantiates a new runtime logger factory singleton.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RuntimeLogger
createRuntimeLogger()
Convenience method actually delegating the call to the instance returned bygetInstance()
.static RuntimeLogger
createRuntimeLogger(java.lang.String aIdentifier)
Convenience method actually delegating the call to the instance returned bygetInstance()
.RuntimeLogger
createRuntimeLogger(java.lang.String aIdentifier, java.util.Map<java.lang.String,java.lang.String> aProperties)
Convenience method actually delegating the call to the instance returned bygetInstance()
.static RuntimeLogger
createRuntimeLogger(java.util.Map<java.lang.String,java.lang.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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
RuntimeLoggerFactory
singleton'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(java.util.Map<java.lang.String,java.lang.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(java.lang.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(java.lang.String aIdentifier, java.util.Map<java.lang.String,java.lang.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
-
-