org.slf4j.helpers

Class BasicMarkerFactory

public class BasicMarkerFactory extends Object implements IMarkerFactory

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.

Author: Ceki Gülcü

Constructor Summary
BasicMarkerFactory()
Regular users should not create BasicMarkerFactory instances.
Method Summary
booleandetachMarker(String name)
booleanexists(String name)
Does the name marked already exist?
MarkergetDetachedMarker(String name)
MarkergetMarker(String name)
Manufacture a BasicMarker instance by name.

Constructor Detail

BasicMarkerFactory

public BasicMarkerFactory()
Regular users should not create BasicMarkerFactory instances. Marker instances can be obtained using the static MarkerFactory method.

Method Detail

detachMarker

public boolean detachMarker(String name)

exists

public boolean exists(String name)
Does the name marked already exist?

getDetachedMarker

public Marker getDetachedMarker(String name)

getMarker

public Marker getMarker(String name)
Manufacture a BasicMarker instance by name. If the instance has been created earlier, return the previously created instance.

Parameters: name the name of the marker to be created

Returns: a Marker instance

Copyright © 2005-2010 QOS.ch. All Rights Reserved.