|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.xml.bind.Marshaller.Listener
public abstract static class Marshaller.Listener
Register an instance of an implementation of this class with a
Marshaller
to externally listen
for marshal events.
This class enables pre and post processing of each marshalled object.
The event callbacks are called when marshalling from an instance that maps to an xml element or
complex type definition. The event callbacks are not called when marshalling from an instance of a
Java datatype that represents a simple type definition.
External listener is one of two different mechanisms for defining marshal event callbacks.
See Marshal Event Callbacks for an overview.
Marshaller#setListener(Listener)
,
Marshaller#getListener()
Constructor Summary | |
---|---|
Marshaller.Listener()
|
Method Summary | |
---|---|
void |
afterMarshal(java.lang.Object source)
Callback method invoked after marshalling source to XML. |
void |
beforeMarshal(java.lang.Object source)
Callback method invoked before marshalling from source to XML. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Marshaller.Listener()
Method Detail |
---|
public void beforeMarshal(java.lang.Object source)
source
- instance of JAXB mapped class prior to marshalling from it.public void afterMarshal(java.lang.Object source)
source
- instance of JAXB mapped class after marshalling it.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2009-2011, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Generated on 10-February-2011 12:41