Interface Marshaller.Listener
-
- All Known Subinterfaces:
XMLMarshalListener
- 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
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 Detail
-
afterMarshal
void afterMarshal(Object target)
This event will be called after an object is marshalled.- Parameters:
target
- The object that was marshalled.
-
beforeMarshal
void beforeMarshal(Object target)
This event will be called before an object is marshalled.- Parameters:
target
- The object that will be marshalled.
-
-