org.eclipse.persistence.jaxb
Class JAXBMarshalListener
java.lang.Object
org.eclipse.persistence.jaxb.JAXBMarshalListener
- All Implemented Interfaces:
- XMLMarshalListener
public class JAXBMarshalListener
- extends java.lang.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JAXBMarshalListener
public JAXBMarshalListener(Marshaller marshaller)
setListener
public void setListener(Marshaller.Listener jaxbListener)
getListener
public Marshaller.Listener getListener()
beforeMarshal
public void beforeMarshal(java.lang.Object obj)
- Specified by:
beforeMarshal
in interface XMLMarshalListener
afterMarshal
public void afterMarshal(java.lang.Object obj)
- Specified by:
afterMarshal
in interface XMLMarshalListener
setClassBasedMarshalEvents
public void setClassBasedMarshalEvents(java.util.Map events)