java.lang.Object
org.eclipse.persistence.jaxb.JAXBMarshalListener
- All Implemented Interfaces:
Marshaller.Listener,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 Summary
ConstructorsConstructorDescriptionJAXBMarshalListener(JAXBContext context, jakarta.xml.bind.Marshaller marshaller) -
Method Summary
Modifier and TypeMethodDescriptionvoidafterMarshal(Object obj) voidbeforeMarshal(Object obj) jakarta.xml.bind.Marshaller.ListenervoidsetClassBasedMarshalEvents(Map events) voidsetListener(jakarta.xml.bind.Marshaller.Listener jaxbListener)
-
Constructor Details
-
JAXBMarshalListener
-
-
Method Details
-
setListener
public void setListener(jakarta.xml.bind.Marshaller.Listener jaxbListener) -
getListener
public jakarta.xml.bind.Marshaller.Listener getListener() -
beforeMarshal
- Specified by:
beforeMarshalin interfaceMarshaller.Listener
-
afterMarshal
- Specified by:
afterMarshalin interfaceMarshaller.Listener
-
setClassBasedMarshalEvents
-