Package org.glassfish.jaxb.runtime.v2
Class ContextFactory
java.lang.Object
org.glassfish.jaxb.runtime.v2.ContextFactory
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic JAXBRIContextcreateContext(Class[] classes, Collection<TypeReference> typeRefs, Map<Class, Class> subclassReplacements, String defaultNsUri, boolean c14nSupport, RuntimeAnnotationReader ar, boolean xmlAccessorFactorySupport, boolean allNillable, boolean retainPropertyInfo) Deprecated.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) Deprecated.usecreateContext( Class[] classes, Map<String,Object> properties)method insteadstatic JAXBContextcreateContext(Class[] classes, Map<String, Object> properties) The API will invoke this method via reflectionstatic JAXBContextcreateContext(String contextPath, ClassLoader classLoader, Map<String, Object> properties) The API will invoke this method via reflection.
-
Field Details
-
USE_JAXB_PROPERTIES
- See Also:
-
-
Method Details
-
createContext
public static JAXBContext createContext(Class[] classes, Map<String, Object> properties) throws JAXBExceptionThe API will invoke this method via reflection- Throws:
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 JAXBExceptionDeprecated.usecreateContext(Class[] classes, Map<String,Object> properties)method instead- Throws:
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 JAXBExceptionDeprecated.usecreateContext( Class[] classes, Map<String,Object> properties)method instead- Throws:
JAXBException
-
createContext
public static JAXBContext createContext(String contextPath, ClassLoader classLoader, Map<String, Object> properties) throws JAXBExceptionThe API will invoke this method via reflection.- Throws:
JAXBException
-
createContext(Class[] classes, Map<String,Object> properties)method instead