Class MarkerMixIn

java.lang.Object
org.apache.logging.log4j.core.jackson.MarkerMixIn
All Implemented Interfaces:
Serializable, Marker

abstract class MarkerMixIn extends Object implements 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 Details

  • Constructor Details

    • MarkerMixIn

      MarkerMixIn(String name)
  • Method Details

    • getName

      public abstract String getName()
      Description copied from interface: Marker
      Returns the name of this Marker.
      Specified by:
      getName in interface Marker
      Returns:
      The name of the Marker.
    • getParents

      public abstract Marker[] getParents()
      Description copied from interface: Marker
      Returns a list of parents of this Marker.
      Specified by:
      getParents in interface Marker
      Returns:
      The parent Markers or null if this Marker has no parents.