org.slf4j.impl
Class StaticLoggerBinder

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

public final class StaticLoggerBinder
extends java.lang.Object
implements org.slf4j.spi.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ü, Amedeo Cannone, Marco Cimatti

Field Summary
static StaticLoggerBinder SINGLETON
          The unique instance of this class.
 
Method Summary
 org.slf4j.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 org.slf4j.ILoggerFactory getLoggerFactory()
Return the instance of ILoggerFactory that LoggerFactory class should bind to.

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

getLoggerFactoryClassStr

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

This method allows the developer to interogate 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 org.slf4j.spi.LoggerFactoryBinder
Returns:
the class name of the intended ILoggerFactory instance.


Copyright © 2007-2008 Imola Informatica. All Rights Reserved.