SLF4J 1.0

org.slf4j.impl
Class StaticLoggerBinder

java.lang.Object
  |
  +--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.

This class also contains the information for binding MarkerFactory with the appropriate IMarkerFactory instance.

Author:
Ceki Gülcü

Field Summary
static StaticLoggerBinder SINGLETON
          The unique instance of this class.
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SINGLETON

public static final StaticLoggerBinder SINGLETON
The unique instance of this class.

Method Detail

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

Copyright 2004-2006 SLF4J.ORG, QOS.ch