Class RuntimeLoggerFactorySingleton

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
  • Constructor Details

    • RuntimeLoggerFactorySingleton

      protected RuntimeLoggerFactorySingleton()
      Instantiates a new runtime logger factory singleton.
  • Method Details

    • getInstance

      public static RuntimeLoggerFactory getInstance()
      Returns the singleton's instance as fabricated by this RuntimeLoggerFactorySingleton.
      Returns:
      The RuntimeLoggerFactory singleton's instance.
    • createRuntimeLogger

      public static RuntimeLogger createRuntimeLogger()
      Convenience method actually delegating the call to the instance returned by getInstance(). See also TypeFactory.createInstance().
      Returns:
      the runtime logger
    • createRuntimeLogger

      public static RuntimeLogger createRuntimeLogger​(Map<String,​String> aProperties)
      Convenience method actually delegating the call to the instance returned by getInstance(). See also TypeFactory.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 by getInstance(). See also TypeFactory.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 by getInstance(). See also LookupFactory.createInstance(Object, Map).
      Parameters:
      aIdentifier - the identifier
      aProperties - the properties
      Returns:
      the runtime logger