EclipseLink 2.1.0, build 'v20100311-r6779' API Reference

org.eclipse.persistence.jaxb
Class JAXBContextFactory

java.lang.Object
  extended by org.eclipse.persistence.jaxb.JAXBContextFactory

public class JAXBContextFactory
extends java.lang.Object

INTERNAL:

Purpose:An EclipseLink specific JAXBContextFactory. This class can be specified in a jaxb.properties file to make use of TopLink'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).

See Also:
JAXBContext, JAXBContext, Generator
Author:
mmacivor
Since:
Oracle TopLink 11.1.1.0.0

Field Summary
static java.lang.String DEFAULT_TARGET_NAMESPACE_KEY
           
static java.lang.String ECLIPSELINK_OXM_XML_KEY
           
 
Constructor Summary
JAXBContextFactory()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ECLIPSELINK_OXM_XML_KEY

public static final java.lang.String ECLIPSELINK_OXM_XML_KEY
See Also:
Constant Field Values

DEFAULT_TARGET_NAMESPACE_KEY

public static final java.lang.String DEFAULT_TARGET_NAMESPACE_KEY
See Also:
Constant Field Values
Constructor Detail

JAXBContextFactory

public JAXBContextFactory()
Method Detail

createContext

public static JAXBContext createContext(java.lang.Class[] classesToBeBound,
                                        java.util.Map properties)
                                 throws JAXBException
Create a JAXBContext on the array of Class objects. The JAXBContext will also be aware of classes reachable from the classes in the array.

Throws:
JAXBException

createContext

public static JAXBContext createContext(java.lang.Class[] classesToBeBound,
                                        java.util.Map properties,
                                        java.lang.ClassLoader classLoader)
                                 throws JAXBException
Create a JAXBContext on the array of Class objects. The JAXBContext will also be aware of classes reachable from the classes in the array.

Throws:
JAXBException

createContext

public static JAXBContext createContext(java.lang.String contextPath,
                                        java.lang.ClassLoader classLoader)
                                 throws JAXBException
Create a JAXBContext on context path. The JAXBContext will also be aware of classes reachable from the classes on the context path.

Throws:
JAXBException

createContext

public static JAXBContext createContext(java.lang.String contextPath,
                                        java.lang.ClassLoader classLoader,
                                        java.util.Map properties)
                                 throws JAXBException
Create a JAXBContext on context path. The JAXBContext will also be aware of classes reachable from the classes on the context path.

Throws:
JAXBException

createContext

public static JAXBContext createContext(java.lang.reflect.Type[] typesToBeBound,
                                        java.util.Map properties,
                                        java.lang.ClassLoader classLoader)
                                 throws JAXBException
Create a JAXBContext on the array of Type objects. The JAXBContext will also be aware of classes reachable from the types in the array. The preferred means of creating a Type aware JAXBContext is to create the JAXBContext with an array of TypeMappingInfo objects.

Throws:
JAXBException

createContext

public static JAXBContext createContext(TypeMappingInfo[] typesToBeBound,
                                        java.util.Map properties,
                                        java.lang.ClassLoader classLoader)
                                 throws JAXBException
Create a JAXBContext on the array of TypeMappingInfo objects. The JAXBContext will also be aware of classes reachable from the types in the array. This is the preferred means of creating a Type aware JAXBContext.

Throws:
JAXBException

EclipseLink 2.1.0, build 'v20100311-r6779' API Reference