- java.lang.Object
-
- org.glassfish.jaxb.runtime.v2.ContextFactory
-
public class ContextFactory extends Object
This class is responsible for producing RI JAXBContext objects.Used to create JAXBContext objects for v1.0.1 and forward
- Since:
- 2.0
- Author:
- Kohsuke Kawaguchi
-
-
Field Summary
Fields Modifier and Type Field Description static StringUSE_JAXB_PROPERTIES
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static JAXBRIContextcreateContext(Class[] classes, Collection<TypeReference> typeRefs, Map<Class,Class> subclassReplacements, String defaultNsUri, boolean c14nSupport, RuntimeAnnotationReader ar, boolean xmlAccessorFactorySupport, boolean allNillable, boolean retainPropertyInfo)Deprecated.usecreateContext(Class[] classes, Map<String,Object> properties)method insteadstatic JAXBRIContextcreateContext(Class[] classes, Collection<TypeReference> typeRefs, Map<Class,Class> subclassReplacements, String defaultNsUri, boolean c14nSupport, RuntimeAnnotationReader ar, boolean xmlAccessorFactorySupport, boolean allNillable, boolean retainPropertyInfo, boolean improvedXsiTypeHandling)Deprecated.usecreateContext( Class[] classes, Map<String,Object> properties)method insteadstatic jakarta.xml.bind.JAXBContextcreateContext(Class[] classes, Map<String,Object> properties)The API will invoke this method via reflectionstatic jakarta.xml.bind.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
- See Also:
- Constant Field Values
-
-
Method Detail
-
createContext
public static jakarta.xml.bind.JAXBContext createContext(Class[] classes, Map<String,Object> properties) throws jakarta.xml.bind.JAXBException
The API will invoke this method via reflection- Throws:
jakarta.xml.bind.JAXBException
-
createContext
@Deprecated 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) throws jakarta.xml.bind.JAXBException
Deprecated.usecreateContext(Class[] classes, Map<String,Object> properties)method instead- Throws:
jakarta.xml.bind.JAXBException
-
createContext
@Deprecated 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) throws jakarta.xml.bind.JAXBException
Deprecated.usecreateContext( Class[] classes, Map<String,Object> properties)method instead- Throws:
jakarta.xml.bind.JAXBException
-
createContext
public static jakarta.xml.bind.JAXBContext createContext(String contextPath, ClassLoader classLoader, Map<String,Object> properties) throws jakarta.xml.bind.JAXBException
The API will invoke this method via reflection.- Throws:
jakarta.xml.bind.JAXBException
-
-