background image

The JAXB Binding Process

<< Binding XML Schema and Java Classes | JAXB Generating Classes >>
<< Binding XML Schema and Java Classes | JAXB Generating Classes >>

The JAXB Binding Process

A JAXB implementation consists of the following architectural components:
Schema compiler
: Binds a source schema to a set of schema-derived program elements. The
binding is described by an XML-based binding language.
Schema generator
: Maps a set of existing program elements to a derived schema. The
mapping is described by program annotations.
Binding runtime framework
: Provides unmarshalling (reading) and marshalling (writing)
operations for accessing, manipulating, and validating XML content using either
schema-derived or existing program elements.
The JAXB Binding Process
Figure 17­2
shows what occurs during the JAXB binding process.
Schema
Generator
Portable
JAXB-annotated
classes
Schema
XML/Java
Customization
Binding
Declarations
Schema
Compiler
Application Code
Package
javax.xml.bind
Object
Factory
Annotation-driven
Binding
Framework
Implementation
Application
Schema to Java
Java to Schema
FIGURE 17­1
JAXB Architectural Overview
JAXB Architecture
The Java EE 5 Tutorial · September 2007
490