Module org.eclipse.persistence.core
Interface Marshaller.Listener
- All Known Subinterfaces:
XMLMarshalListener
- All Known Implementing Classes:
JAXBMarshalListener
,SDOMarshalListener
- Enclosing class:
Marshaller<CHARACTER_ESCAPE_HANDLER extends CharacterEscapeHandler,
CONTEXT extends Context, MARSHALLER_LISTENER extends Marshaller.Listener, MEDIA_TYPE extends MediaType, NAMESPACE_PREFIX_MAPPER extends NamespacePrefixMapper>
public static interface Marshaller.Listener
An implementation of Marshaller.Listener can be set on an Marshaller to provide additional behaviour during marshal operations.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
afterMarshal
(Object target) This event will be called after an object is marshalled.void
beforeMarshal
(Object target) This event will be called before an object is marshalled.
-
Method Details
-
afterMarshal
This event will be called after an object is marshalled.- Parameters:
target
- The object that was marshalled.
-
beforeMarshal
This event will be called before an object is marshalled.- Parameters:
target
- The object that will be marshalled.
-