Class MarkerMixIn
java.lang.Object
org.apache.logging.log4j.core.jackson.MarkerMixIn
- All Implemented Interfaces:
Serializable
,Marker
Jackson mix-in for
Marker
.
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:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
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 Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
MarkerMixIn
MarkerMixIn(String name)
-
-
Method Details
-
getName
Description copied from interface:Marker
Returns the name of this 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.
-