public class JAXBContextFactory
extends java.lang.Object
Purpose:An EclipseLink specific JAXBContextFactory. This class can be specified in a jaxb.properties file to make use of EclipseLink's JAXB 2.1 implementation.
Responsibilities:
This class is the entry point into in EclipseLink's JAXB 2.1 Runtime. It provides the required factory methods and is invoked by javax.xml.bind.JAXBContext.newInstance() to create new instances of JAXBContext. When creating a JAXBContext from a contextPath, the list of classes is derived either from an ObjectFactory class (schema-to-java) or a jaxb.index file (java-to-schema).
JAXBContext
,
JAXBContext
,
Generator
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ANNOTATION_HELPER_KEY
Deprecated.
As of release 2.4, replaced by JAXBContextProperties.ANNOTATION_HELPER
|
static java.lang.String |
DEFAULT_TARGET_NAMESPACE_KEY
Deprecated.
As of release 2.4, replaced by JAXBContextProperties.DEFAULT_TARGET_NAMESPACE
|
static java.lang.String |
ECLIPSELINK_OXM_XML_KEY
Deprecated.
As of release 2.4, replaced by JAXBContextProperties.OXM_METADATA_SOURCE
|
static java.lang.String |
PKG_SEPARATOR |
Constructor and Description |
---|
JAXBContextFactory() |
Modifier and Type | Method and Description |
---|---|
static JAXBContext |
createContext(java.lang.Class[] classesToBeBound,
java.util.Map properties)
Create a JAXBContext on the array of Class objects.
|
static JAXBContext |
createContext(java.lang.Class[] classesToBeBound,
java.util.Map properties,
java.lang.ClassLoader classLoader)
Create a JAXBContext on the array of Class objects.
|
static JAXBContext |
createContext(java.lang.String contextPath,
java.lang.ClassLoader classLoader)
Create a JAXBContext on context path.
|
static JAXBContext |
createContext(java.lang.String contextPath,
java.lang.ClassLoader classLoader,
java.util.Map properties)
Create a JAXBContext on context path.
|
static JAXBContext |
createContext(java.lang.reflect.Type[] typesToBeBound,
java.util.Map properties,
java.lang.ClassLoader classLoader)
Create a JAXBContext on the array of Type objects.
|
static JAXBContext |
createContext(TypeMappingInfo[] typesToBeBound,
java.util.Map properties,
java.lang.ClassLoader classLoader)
Create a JAXBContext on the array of TypeMappingInfo objects.
|
static java.util.Map<java.lang.String,XmlBindings> |
getXmlBindingsFromProperties(java.util.Map properties,
java.lang.ClassLoader classLoader)
Convenience method for processing a properties map and creating a map of
package names to XmlBindings instances.
|
@Deprecated public static final java.lang.String ECLIPSELINK_OXM_XML_KEY
org.eclipse.persistence.jaxb.JAXBContextProperties.OXM_METADATA_SOURCE
,
Constant Field Values@Deprecated public static final java.lang.String DEFAULT_TARGET_NAMESPACE_KEY
org.eclipse.persistence.jaxb.JAXBContextProperties.DEFAULT_TARGET_NAMESPACE
,
Constant Field Values@Deprecated public static final java.lang.String ANNOTATION_HELPER_KEY
org.eclipse.persistence.jaxb.JAXBContextProperties.ANNOTATION_HELPER
,
Constant Field Valuespublic static final java.lang.String PKG_SEPARATOR
public static JAXBContext createContext(java.lang.Class[] classesToBeBound, java.util.Map properties) throws JAXBException
JAXBException
public static JAXBContext createContext(java.lang.Class[] classesToBeBound, java.util.Map properties, java.lang.ClassLoader classLoader) throws JAXBException
JAXBException
public static JAXBContext createContext(java.lang.String contextPath, java.lang.ClassLoader classLoader) throws JAXBException
JAXBException
public static JAXBContext createContext(java.lang.String contextPath, java.lang.ClassLoader classLoader, java.util.Map properties) throws JAXBException
JAXBException
public static JAXBContext createContext(java.lang.reflect.Type[] typesToBeBound, java.util.Map properties, java.lang.ClassLoader classLoader) throws JAXBException
JAXBException
public static JAXBContext createContext(TypeMappingInfo[] typesToBeBound, java.util.Map properties, java.lang.ClassLoader classLoader) throws JAXBException
JAXBException
public static java.util.Map<java.lang.String,XmlBindings> getXmlBindingsFromProperties(java.util.Map properties, java.lang.ClassLoader classLoader)