public class ContextFactory extends Object
Used to create JAXBContext objects for v1.0.1 and forward
Modifier and Type | Field and Description |
---|---|
static String |
USE_JAXB_PROPERTIES |
Constructor and Description |
---|
ContextFactory() |
Modifier and Type | Method and Description |
---|---|
static JAXBRIContext |
createContext(Class[] classes,
Collection<TypeReference> typeRefs,
Map<Class,Class> subclassReplacements,
String defaultNsUri,
boolean c14nSupport,
RuntimeAnnotationReader ar,
boolean xmlAccessorFactorySupport,
boolean allNillable,
boolean retainPropertyInfo)
Deprecated.
use
createContext(Class[] classes, Map<String,Object> properties) method instead |
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)
Deprecated.
use
createContext( Class[] classes, Map<String,Object> properties) method instead |
static JAXBContext |
createContext(Class[] classes,
Map<String,Object> properties)
The API will invoke this method via reflection
|
static JAXBContext |
createContext(String contextPath,
ClassLoader classLoader,
Map<String,Object> properties)
The API will invoke this method via reflection.
|
public static final String USE_JAXB_PROPERTIES
public static JAXBContext createContext(Class[] classes, Map<String,Object> properties) throws JAXBException
JAXBException
@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 JAXBException
createContext(Class[] classes, Map<String,Object> properties)
method insteadclasses
- typeRefs
- subclassReplacements
- defaultNsUri
- c14nSupport
- ar
- xmlAccessorFactorySupport
- allNillable
- retainPropertyInfo
- JAXBException
@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 JAXBException
createContext( Class[] classes, Map<String,Object> properties)
method insteadclasses
- typeRefs
- subclassReplacements
- defaultNsUri
- c14nSupport
- ar
- xmlAccessorFactorySupport
- allNillable
- retainPropertyInfo
- improvedXsiTypeHandling
- JAXBException
public static JAXBContext createContext(String contextPath, ClassLoader classLoader, Map<String,Object> properties) throws JAXBException
JAXBException
Copyright © 2021 JBoss by Red Hat. All rights reserved.