org.slf4j.impl
Class StaticMarkerBinder

java.lang.Object
  extended by org.slf4j.impl.StaticMarkerBinder
All Implemented Interfaces:
org.slf4j.spi.MarkerFactoryBinder

public final class StaticMarkerBinder
extends java.lang.Object
implements org.slf4j.spi.MarkerFactoryBinder

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

Author:
Ceki Gülcü, Amedeo Cannone, Marco Cimatti

Field Summary
static StaticMarkerBinder SINGLETON
          The unique instance of this class.
 
Method Summary
 org.slf4j.IMarkerFactory getMarkerFactory()
          Return the instance of IMarkerFactory that MarkerFactory class should bind to.
 java.lang.String getMarkerFactoryClassStr()
          The String form of the IMarkerFactory object that this MarkerFactoryBinder 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 StaticMarkerBinder SINGLETON
The unique instance of this class.

Method Detail

getMarkerFactory

public org.slf4j.IMarkerFactory getMarkerFactory()
Return the instance of IMarkerFactory that MarkerFactory class should bind to.

Specified by:
getMarkerFactory in interface org.slf4j.spi.MarkerFactoryBinder
Returns:
an instance of BasicMarkerFactory.

getMarkerFactoryClassStr

public java.lang.String getMarkerFactoryClassStr()
The String form of the IMarkerFactory object that this MarkerFactoryBinder instance is intended to return.

This method allows the developer to interogate this binder's intention which may be different from the IMarkerFactory instance it is able to return. Such a discrepency should only occur in case of errors.

Specified by:
getMarkerFactoryClassStr in interface org.slf4j.spi.MarkerFactoryBinder
Returns:
the class name of BasicMarkerFactory.


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