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 Type
    Method
    Description
    void
    This event will be called after an object is marshalled.
    void
    This event will be called before an object is marshalled.
  • Method Details

    • 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.