Class MarkerMixIn
- java.lang.Object
-
- org.apache.logging.log4j.core.jackson.MarkerMixIn
-
- All Implemented Interfaces:
java.io.Serializable
,Marker
abstract class MarkerMixIn extends java.lang.Object implements Marker
Jackson mix-in forMarker
.If we want to deal with more than one
Marker
implementation then recode these annotations to include metadata.Consider this class private.
Example XML:
<Marker name="Marker1"> <Parents> <Marker name="ParentMarker1"> <Parents> <Marker name="GrandMotherMarker"/> <Marker name="GrandFatherMarker"/> </Parents> </Marker> <Marker name="ParentMarker2"/> </Parents> </Marker>
- See Also:
Marker
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description MarkerMixIn(java.lang.String name)
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract java.lang.String
getName()
Returns the name of this Marker.abstract Marker[]
getParents()
Returns a list of parents of this Marker.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.logging.log4j.Marker
addParents, equals, hashCode, hasParents, isInstanceOf, isInstanceOf, remove, setParents
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public abstract java.lang.String getName()
Description copied from interface:Marker
Returns the name of this Marker.
-
getParents
public abstract Marker[] getParents()
Description copied from interface:Marker
Returns a list of parents of this Marker.- Specified by:
getParents
in interfaceMarker
- Returns:
- The parent Markers or
null
if this Marker has no parents.
-
-