Package org.slf4j.helpers
Class BasicMarkerFactory
java.lang.Object
org.slf4j.helpers.BasicMarkerFactory
- All Implemented Interfaces:
- 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 SummaryConstructorsConstructorDescriptionRegular users should not createBasicMarkerFactoryinstances.
- 
Method SummaryModifier and TypeMethodDescriptionbooleandetachMarker(String name) Detach an existing marker.booleanDoes the name marked already exist?getDetachedMarker(String name) Create a marker which is detached (even at birth) from this IMarkerFactory.Manufacture aBasicMarkerinstance by name.
- 
Constructor Details- 
BasicMarkerFactorypublic BasicMarkerFactory()Regular users should not createBasicMarkerFactoryinstances.Markerinstances can be obtained using the staticMarkerFactory.getMarker(java.lang.String)method.
 
- 
- 
Method Details- 
getMarkerManufacture aBasicMarkerinstance by name. If the instance has been created earlier, return the previously created instance.- Specified by:
- getMarkerin interface- IMarkerFactory
- Parameters:
- name- the name of the marker to be created
- Returns:
- a Marker instance
 
- 
existsDoes the name marked already exist?- Specified by:
- existsin interface- IMarkerFactory
- Parameters:
- name- logger name to check for
- Returns:
- true id the marker exists, false otherwise.
 
- 
detachMarkerDescription copied from interface:IMarkerFactoryDetach an existing marker.Note that after a marker is detached, there might still be "dangling" references to the detached marker. - Specified by:
- detachMarkerin interface- IMarkerFactory
- Parameters:
- name- The name of the marker to detach
- Returns:
- whether the marker could be detached or not
 
- 
getDetachedMarkerDescription copied from interface:IMarkerFactoryCreate a marker which is detached (even at birth) from this IMarkerFactory.- Specified by:
- getDetachedMarkerin interface- IMarkerFactory
- Parameters:
- name- marker name
- Returns:
- a dangling marker
 
 
-