Object that coordinates the marshalling/unmarshalling.
This class takes care of the logic that allows code to obtain
UnmarshallingContext and
XMLSerializer instances
during the unmarshalling/marshalling.
This is done by using a
ThreadLocal . Therefore one unmarshalling/marshalling
episode has to be done from the beginning till end by the same thread.
(Note that the same
Coordinator can be then used by a different thread
for an entirely different episode.)
This class also maintains the user-configured instances of
XmlAdapter s.
This class implements
ErrorHandler and propages erros to this object
as the
ValidationEventHandler , which will be implemented in a derived class.
author: Kohsuke Kawaguchi |