Package org.slf4j.impl
Class StaticMarkerBinder
- java.lang.Object
-
- org.slf4j.impl.StaticMarkerBinder
-
- All Implemented Interfaces:
MarkerFactoryBinder
public class StaticMarkerBinder extends java.lang.Object implements MarkerFactoryBinder
The binding ofMarkerFactory
class with an actual instance ofIMarkerFactory
is performed using information returned by this class.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) IMarkerFactory
markerFactory
static StaticMarkerBinder
SINGLETON
The unique instance of this class.
-
Constructor Summary
Constructors Modifier Constructor Description private
StaticMarkerBinder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IMarkerFactory
getMarkerFactory()
Currently this method always returns an instance ofBasicMarkerFactory
.java.lang.String
getMarkerFactoryClassStr()
Currently, this method returns the class name ofBasicMarkerFactory
.static StaticMarkerBinder
getSingleton()
Return the singleton of this class.
-
-
-
Field Detail
-
SINGLETON
public static final StaticMarkerBinder SINGLETON
The unique instance of this class.
-
markerFactory
final IMarkerFactory markerFactory
-
-
Method Detail
-
getSingleton
public static StaticMarkerBinder getSingleton()
Return the singleton of this class.- Returns:
- the StaticMarkerBinder singleton
- Since:
- 1.7.14
-
getMarkerFactory
public IMarkerFactory getMarkerFactory()
Currently this method always returns an instance ofBasicMarkerFactory
.- Specified by:
getMarkerFactory
in interfaceMarkerFactoryBinder
- Returns:
- the instance of
IMarkerFactory
thatMarkerFactory
class should bind to.
-
getMarkerFactoryClassStr
public java.lang.String getMarkerFactoryClassStr()
Currently, this method returns the class name ofBasicMarkerFactory
.- Specified by:
getMarkerFactoryClassStr
in interfaceMarkerFactoryBinder
- Returns:
- the class name of the intended
IMarkerFactory
instance
-
-