- 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:
Marshaller.Listener,XMLMarshalListener
-
-
Constructor Summary
Constructors Constructor Description JAXBMarshalListener(JAXBContext context, jakarta.xml.bind.Marshaller marshaller)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterMarshal(Object obj)voidbeforeMarshal(Object obj)jakarta.xml.bind.Marshaller.ListenergetListener()voidsetClassBasedMarshalEvents(Map events)voidsetListener(jakarta.xml.bind.Marshaller.Listener jaxbListener)
-
-
-
Constructor Detail
-
JAXBMarshalListener
public JAXBMarshalListener(JAXBContext context, jakarta.xml.bind.Marshaller marshaller)
-
-
Method Detail
-
setListener
public void setListener(jakarta.xml.bind.Marshaller.Listener jaxbListener)
-
getListener
public jakarta.xml.bind.Marshaller.Listener getListener()
-
beforeMarshal
public void beforeMarshal(Object obj)
- Specified by:
beforeMarshalin interfaceMarshaller.Listener
-
afterMarshal
public void afterMarshal(Object obj)
- Specified by:
afterMarshalin interfaceMarshaller.Listener
-
setClassBasedMarshalEvents
public void setClassBasedMarshalEvents(Map events)
-
-