public class BasicMarkerFactory extends Objectimplements 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
Detach an existing marker.
|
boolean |
exists(String
Does the name marked already exist?
|
Marker |
getDetachedMarker(String
Create a marker which is detached (even at birth) from this IMarkerFactory.
|
Marker |
getMarker(String
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 MarkergetMarker(String name)
BasicMarker instance by name. If the instance has been created earlier, return the previously created instance.
getMarker in interface
IMarkerFactory
name - the name of the marker to be created
public boolean exists(Stringname)
exists in interface
IMarkerFactory
name - logger name to check for
public boolean detachMarker(Stringname)
IMarkerFactory
Note that after a marker is detached, there might still be "dangling" references to the detached marker.
detachMarker in interface
IMarkerFactory
name - The name of the marker to detach
public MarkergetDetachedMarker(String name)
IMarkerFactory
getDetachedMarker in interface
IMarkerFactory
name - marker name