Class JAXBMarshalListener

java.lang.Object
org.eclipse.persistence.jaxb.JAXBMarshalListener
All Implemented Interfaces:
Marshaller.Listener, XMLMarshalListener

public class JAXBMarshalListener extends Object implements XMLMarshalListener
INTERNAL:

Purpose:Provide a wrapper for a JAXB 2.0 Marshal Listener that implements XMLMarshalListener

Responsibilities:

  • Implement the XMLMarshalListener API
  • Delegate event callbacks to the wrapped Listener instance
  • Perform JAXB 2.0 Class-Based marshal event callbacks
See Also:
  • Constructor Details

  • Method Details

    • setListener

      public void setListener(Marshaller.Listener jaxbListener)
    • getListener

      public Marshaller.Listener getListener()
    • beforeMarshal

      public void beforeMarshal(Object obj)
      Description copied from interface: Marshaller.Listener
      This event will be called before an object is marshalled.
      Specified by:
      beforeMarshal in interface Marshaller.Listener
      Parameters:
      obj - The object that will be marshalled.
    • afterMarshal

      public void afterMarshal(Object obj)
      Description copied from interface: Marshaller.Listener
      This event will be called after an object is marshalled.
      Specified by:
      afterMarshal in interface Marshaller.Listener
      Parameters:
      obj - The object that was marshalled.
    • setClassBasedMarshalEvents

      public void setClassBasedMarshalEvents(Map events)