org.apache.logging.log4j
Class MarkerManager

java.lang.Object
  extended by org.apache.logging.log4j.MarkerManager

public final class MarkerManager
extends Object

Applications create Markers by using the Marker Manager. All Markers created by this Manager are immutable.


Method Summary
static Marker getMarker(String name)
          Retrieve a Marker or create a Marker that has no parent.
static Marker getMarker(String name, Marker parent)
          Retrieves or creates a Marker with the specified parent.
static Marker getMarker(String name, String parent)
          Retrieves or creates a Marker with the specified parent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMarker

public static Marker getMarker(String name)
Retrieve a Marker or create a Marker that has no parent.

Parameters:
name - The name of the Marker.
Returns:
The Marker with the specified name.

getMarker

public static Marker getMarker(String name,
                               String parent)
Retrieves or creates a Marker with the specified parent. The parent must have been previously created.

Parameters:
name - The name of the Marker.
parent - The name of the parent Marker.
Returns:
The Marker with the specified name.
Throws:
IllegalArgumentException - if the parent Marker does not exist.

getMarker

public static Marker getMarker(String name,
                               Marker parent)
Retrieves or creates a Marker with the specified parent.

Parameters:
name - The name of the Marker.
parent - The parent Marker.
Returns:
The Marker with the specified name.


Copyright © 1999-2012 Apache Software Foundation. All Rights Reserved.