public class BasicMarkerFactory extends java.lang.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(java.lang.String name)
Detach an existing marker.
|
boolean |
exists(java.lang.String name)
Does the name marked already exist?
|
Marker |
getDetachedMarker(java.lang.String name)
Create a marker which is detached (even at birth) from this IMarkerFactory.
|
Marker |
getMarker(java.lang.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(java.lang.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(java.lang.String name)
exists
in interface IMarkerFactory
name
- logger name to check forpublic boolean detachMarker(java.lang.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(java.lang.String name)
IMarkerFactory
getDetachedMarker
in interface IMarkerFactory
name
- marker nameCopyright © 2010 - 2020 Adobe. All Rights Reserved