org.slf4j.impl
Class StaticLoggerBinder

java.lang.Object
  extended by org.slf4j.impl.StaticLoggerBinder
All Implemented Interfaces:
LoggerFactoryBinder

public class StaticLoggerBinder
extends java.lang.Object
implements LoggerFactoryBinder

The binding of LoggerFactory class with an actual instance of ILoggerFactory is performed using information returned by this class.

Author:
Ceki Gülcü

Field Summary
static java.lang.String REQUESTED_API_VERSION
          Declare the version of the SLF4J API this implementation is compiled against.
 
Method Summary
 ILoggerFactory getLoggerFactory()
          Return the instance of ILoggerFactory that LoggerFactory class should bind to.
 java.lang.String getLoggerFactoryClassStr()
          The String form of the ILoggerFactory object that this LoggerFactoryBinder instance is intended to return.
static StaticLoggerBinder getSingleton()
          Return the singleton of this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REQUESTED_API_VERSION

public static java.lang.String REQUESTED_API_VERSION
Declare the version of the SLF4J API this implementation is compiled against. The value of this field is usually modified with each release.

Method Detail

getSingleton

public static final StaticLoggerBinder getSingleton()
Return the singleton of this class.

Returns:
the StaticLoggerBinder singleton

getLoggerFactory

public ILoggerFactory getLoggerFactory()
Description copied from interface: LoggerFactoryBinder
Return the instance of ILoggerFactory that LoggerFactory class should bind to.

Specified by:
getLoggerFactory in interface LoggerFactoryBinder
Returns:
the instance of ILoggerFactory that LoggerFactory class should bind to.

getLoggerFactoryClassStr

public java.lang.String getLoggerFactoryClassStr()
Description copied from interface: LoggerFactoryBinder
The String form of the ILoggerFactory object that this LoggerFactoryBinder instance is intended to return.

This method allows the developer to intterogate this binder's intention which may be different from the ILoggerFactory instance it is able to yield in practice. The discrepency should only occur in case of errors.

Specified by:
getLoggerFactoryClassStr in interface LoggerFactoryBinder
Returns:
the class name of the intended ILoggerFactory instance