| Modifier and Type | Class and Description |
|---|---|
| public static class | MarkerManager.
Consider this class private, it is only public to satisfy Jackson for XML and JSON IO. |
| Modifier and Type | Field and Description |
|---|---|
| private static final ConcurrentMap |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| public static boolean | |
| public static Marker | |
| public static Marker | Returns: The Marker with the specified name.The name of the Marker. name, final String The name of the parent Marker. parent)
Deprecated
Use the Marker add or set methods to add parent Markers. Will be removed by final GA release.
Retrieves or creates a Marker with the specified parent. |
| public static Marker | |
| private static void |
| MARKERS | back to summary |
|---|---|
| private static final ConcurrentMap<String, Marker> MARKERS | |
| MarkerManager | back to summary |
|---|---|
| private MarkerManager() | |
| clear | back to summary |
|---|---|
| public static void clear() Clears all markers. | |
| exists | back to summary |
|---|---|
| public static boolean exists(final String key) Tests existence of the given marker.
| |
| getMarker | back to summary |
|---|---|
| public static Marker getMarker(final String name) Retrieves a Marker or create a Marker that has no parent.
| |
| getMarker | back to summary |
|---|---|
| public static Marker getMarker(final String name, final String parent)
Deprecated Use the Marker add or set methods to add parent Markers. Will be removed by final GA release. Retrieves or creates a Marker with the specified parent. The parent must have been previously created.
| |
| getMarker | back to summary |
|---|---|
| public static Marker getMarker(final String name, final Marker parent)
Deprecated Use the Marker add or set methods to add parent Markers. Will be removed by final GA release. Retrieves or creates a Marker with the specified parent.
| |
| requireNonNull | back to summary |
|---|---|
| private static void requireNonNull(final Object obj, final String message) | |
The actual Marker implementation.
Internal Note
We could make this class package private instead of public if the class
org.apache.logging.log4j.core.jackson.MarkerMixIn
is moved to this package and would of course stay in its current module.
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private volatile Marker[] | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| private | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| public synchronized Marker | addParents(final Marker...
The parent markers to add. parentMarkers)Implements org. Adds a Marker as a parent to this Marker. |
| private static boolean | |
| private static boolean | |
| public boolean | equals(final Object
the reference object with which to compare. o)Overrides java. Implements org. Returns true if the given marker has the same name as this marker. |
| public void | formatTo(final StringBuilder
the StringBuilder to write into sb)Implements org. Writes a text representation of this object into the specified |
| public String | |
| public Marker[] | getParents()
Implements org. Returns a list of parents of this Marker. |
| public int | hashCode()
Overrides java. Implements org. Returns a hash code value based on the name of this marker. |
| public boolean | hasParents()
Implements org. Indicates whether this Marker has references to any other Markers. |
| public boolean | isInstanceOf(final Marker
The Marker to check. marker)Implements org. Checks whether this Marker is an instance of the specified Marker. |
| public boolean | isInstanceOf(final String
The name of the Marker. markerName)Implements org. Checks whether this Marker is an instance of the specified Marker. |
| public synchronized boolean | remove(final Marker
The marker to remove. parent)Implements org. Removes the specified Marker as a parent of this Marker. |
| public Marker | setParents(final Marker...
The new set of parent Markers or markers)null to clear the parents.Implements org. Replaces the set of parent Markers with the provided Markers. |
| public String |
| name | back to summary |
|---|---|
| private final String name | |
| parents | back to summary |
|---|---|
| private volatile Marker[] parents | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| Log4jMarker | back to summary |
|---|---|
| private Log4jMarker() Required by JAXB and Jackson for XML and JSON IO.
| |
| Log4jMarker | back to summary |
|---|---|
| public Log4jMarker(final String name) Constructs a new Marker.
| |
| addParentInfo | back to summary |
|---|---|
private static void addParentInfo(final StringBuilder sb, final Marker... parents)
| |
| addParents | back to summary |
|---|---|
| public synchronized Marker addParents(final Marker... parentMarkers) Implements org. Doc from org. Adds a Marker as a parent to this Marker. | |
| checkParent | back to summary |
|---|---|
private static boolean checkParent(final Marker parent, final Marker marker)
| |
| contains | back to summary |
|---|---|
private static boolean contains(final Marker parent, final Marker... localParents)
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object o) Overrides java. Implements org. Doc from org. Returns true if the given marker has the same name as this marker. | |
| formatTo | back to summary |
|---|---|
| public void formatTo(final StringBuilder sb) Implements org. Doc from org. Writes a text representation of this object into the specified
| |
| getName | back to summary |
|---|---|
| public String getName() Implements org. Doc from org. Returns the name of this Marker. | |
| getParents | back to summary |
|---|---|
| public Marker[] getParents() Implements org. Doc from org. Returns a list of parents of this Marker. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Implements org. Doc from org. Returns a hash code value based on the name of this marker. Markers are equal if they have the same name.
| |
| hasParents | back to summary |
|---|---|
| public boolean hasParents() Implements org. Doc from org. Indicates whether this Marker has references to any other Markers.
| |
| isInstanceOf | back to summary |
|---|---|
| public boolean isInstanceOf(final Marker marker) Implements org. Doc from org. Checks whether this Marker is an instance of the specified Marker.
| |
| isInstanceOf | back to summary |
|---|---|
| public boolean isInstanceOf(final String markerName) Implements org. Doc from org. Checks whether this Marker is an instance of the specified Marker.
| |
| remove | back to summary |
|---|---|
| public synchronized boolean remove(final Marker parent) Implements org. Doc from org. Removes the specified Marker as a parent of this Marker. | |
| setParents | back to summary |
|---|---|
| public Marker setParents(final Marker... markers) Implements org. Doc from org. Replaces the set of parent Markers with the provided Markers. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |