public class BasicMarkerFactory extends Object implements IMarkerFactory
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 and Description |
|---|
BasicMarkerFactory()
Regular users should not create
BasicMarkerFactory instances. |
| Modifier and Type | Method and Description |
|---|---|
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. |
public BasicMarkerFactory()
BasicMarkerFactory instances. Marker
instances can be obtained using the static MarkerFactory.getMarker(java.lang.String) method.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 detachpublic boolean exists(String name)
exists in interface IMarkerFactoryname - logger name to check forpublic Marker getDetachedMarker(String name)
IMarkerFactorygetDetachedMarker in interface IMarkerFactoryname - marker namepublic 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