Class Unmarshaller.Listener

java.lang.Object
jakarta.xml.bind.Unmarshaller.Listener
Enclosing interface:
Unmarshaller

public abstract static class Unmarshaller.Listener extends Object

Register an instance of an implementation of this class with Unmarshaller to externally listen for unmarshal events.

This class enables pre and post processing of an instance of a Jakarta XML Binding mapped class as XML data is unmarshalled into it. The event callbacks are called when unmarshalling XML content into a JAXBElement instance or a Jakarta XML Binding mapped class that represents a complex type definition. The event callbacks are not called when unmarshalling to an instance of a Java datatype that represents a simple type definition.

External listener is one of two different mechanisms for defining unmarshal event callbacks. See Unmarshal Event Callbacks for an overview.

(@link #setListener(Listener)} (@link #getListener()}
Since:
1.6, JAXB 2.0