com.sun.xml.bind.v2

Class ContextFactory

public class ContextFactory extends Object

This class is responsible for producing RI JAXBContext objects. In the RI, this is the class that the javax.xml.bind.context.factory property will point to.

Used to create JAXBContext objects for v1.0.1 and forward

Since: 2.0

Field Summary
static StringUSE_JAXB_PROPERTIES
Method Summary
static JAXBContextcreateContext(Class[] classes, Map<String,Object> properties)
The API will invoke this method via reflection
static JAXBRIContextcreateContext(Class[] classes, Collection<TypeReference> typeRefs, Map<Class,Class> subclassReplacements, String defaultNsUri, boolean c14nSupport, RuntimeAnnotationReader ar, boolean xmlAccessorFactorySupport, boolean allNillable, boolean retainPropertyInfo)
static JAXBRIContextcreateContext(Class[] classes, Collection<TypeReference> typeRefs, Map<Class,Class> subclassReplacements, String defaultNsUri, boolean c14nSupport, RuntimeAnnotationReader ar, boolean xmlAccessorFactorySupport, boolean allNillable, boolean retainPropertyInfo, boolean improvedXsiTypeHandling)
static JAXBContextcreateContext(String contextPath, ClassLoader classLoader, Map<String,Object> properties)
The API will invoke this method via reflection.

Field Detail

USE_JAXB_PROPERTIES

public static final String USE_JAXB_PROPERTIES

Method Detail

createContext

public static JAXBContext createContext(Class[] classes, Map<String,Object> properties)
The API will invoke this method via reflection

createContext

public static JAXBRIContext createContext(Class[] classes, Collection<TypeReference> typeRefs, Map<Class,Class> subclassReplacements, String defaultNsUri, boolean c14nSupport, RuntimeAnnotationReader ar, boolean xmlAccessorFactorySupport, boolean allNillable, boolean retainPropertyInfo)

createContext

public static JAXBRIContext createContext(Class[] classes, Collection<TypeReference> typeRefs, Map<Class,Class> subclassReplacements, String defaultNsUri, boolean c14nSupport, RuntimeAnnotationReader ar, boolean xmlAccessorFactorySupport, boolean allNillable, boolean retainPropertyInfo, boolean improvedXsiTypeHandling)

createContext

public static JAXBContext createContext(String contextPath, ClassLoader classLoader, Map<String,Object> properties)
The API will invoke this method via reflection.