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 Marker getMarker(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 createdpublic boolean exists(String name)
exists
in interface IMarkerFactory
name
- logger name to check forpublic boolean detachMarker(String name)
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 detachpublic Marker getDetachedMarker(String name)
IMarkerFactory
getDetachedMarker
in interface IMarkerFactory
name
- marker nameCopyright © 2018 JBoss by Red Hat. All rights reserved.