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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
afterMarshal
(Object obj) This event will be called after an object is marshalled.void
beforeMarshal
(Object obj) This event will be called before an object is marshalled.void
setClassBasedMarshalEvents
(Map events) void
setListener
(Marshaller.Listener jaxbListener)
-
Constructor Details
-
JAXBMarshalListener
-
-
Method Details
-
setListener
-
getListener
-
beforeMarshal
Description copied from interface:Marshaller.Listener
This event will be called before an object is marshalled.- Specified by:
beforeMarshal
in interfaceMarshaller.Listener
- Parameters:
obj
- The object that will be marshalled.
-
afterMarshal
Description copied from interface:Marshaller.Listener
This event will be called after an object is marshalled.- Specified by:
afterMarshal
in interfaceMarshaller.Listener
- Parameters:
obj
- The object that was marshalled.
-
setClassBasedMarshalEvents
-