|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.slf4j.helpers.BasicMarkerFactory
public class BasicMarkerFactory
An almost trivial implementation of the IMarkerFactory
interface which creates BasicMarker instances.
Simple logging systems can conform to the SLF4J API by binding
MarkerFactory with an instance of this class.
| Constructor Summary | |
|---|---|
BasicMarkerFactory()
Regular users should not create BasicMarkerFactory instances. |
|
| Method Summary | |
|---|---|
boolean |
detachMarker(String name)
Detach an existing marker. |
boolean |
exists(String name)
Does the name marked already exist? |
Marker |
getDetachedMarker(String name)
Create a marker which is detached (even at birth) from this IMarkerFactory. |
Marker |
getMarker(String name)
Manufacture a BasicMarker instance by name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicMarkerFactory()
BasicMarkerFactory instances. Marker
instances can be obtained using the static MarkerFactory.getMarker(java.lang.String) method.
| Method Detail |
|---|
public Marker getMarker(String name)
BasicMarker instance by name. If the instance has been
created earlier, return the previously created instance.
getMarker in interface IMarkerFactoryname - the name of the marker to be created
public boolean exists(String name)
exists in interface IMarkerFactoryname - logger name to check for
public boolean detachMarker(String name)
IMarkerFactoryNote that after a marker is detached, there might still be "dangling" references to the detached marker.
detachMarker in interface IMarkerFactoryname - The name of the marker to detach
public Marker getDetachedMarker(String name)
IMarkerFactory
getDetachedMarker in interface IMarkerFactoryname - marker name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||