The JAXB 2.0 runtime.
Overview
This module provides code that implements
JAXBContext .
Roughly speaking the runtime works like this:
- There's a set of classes and interfaces that model JAXB-bound types.
You can think of this as a reflection library for JAXB.
- There's a set of classes that constitute the unmarshaller and marshaller.
Each class represents a small portion, and they are composed to perform
the operations.
-
JAXBContextImpl builds itself by reading the model and
composing unmarshallers and marshallers.
Interesting Pieces inside Runtime
The followings are the interesting pieces inside the runtime.
-
com.sun.xml.bind.v2.model model
-
This set of classes and interfaces models JAXB-bound types.
-
com.sun.xml.bind.v2.runtime XML I/O
-
This set of classes implements the JAXB API and provides the XML I/O functionality.
The classes NOT in the
com.sun.xml.bind.v2 package (and its subpackages)
are also used by old JAXB 1.0 clients.
Models
"Model" is the portion of the code that represents JAXB-bound types.
The following picture illustrates the relationship among major
packages of the binding model.
The core model contracts are all interfaces, and they are parameterized
so that they can be used
with different reflection libraries. |