com.sun.xml.bind.v2
Class ContextFactory

java.lang.Object
  extended by com.sun.xml.bind.v2.ContextFactory

public class ContextFactory
extends java.lang.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 java.lang.String USE_JAXB_PROPERTIES
           
 
Constructor Summary
ContextFactory()
           
 
Method Summary
static JAXBRIContext createContext(java.lang.Class[] classes, java.util.Collection<TypeReference> typeRefs, java.util.Map<java.lang.Class,java.lang.Class> subclassReplacements, java.lang.String defaultNsUri, boolean c14nSupport, RuntimeAnnotationReader ar, boolean xmlAccessorFactorySupport, boolean allNillable, boolean retainPropertyInfo)
          Deprecated. use createContext(Class[] classes, Map properties) method instead
static JAXBRIContext createContext(java.lang.Class[] classes, java.util.Collection<TypeReference> typeRefs, java.util.Map<java.lang.Class,java.lang.Class> subclassReplacements, java.lang.String defaultNsUri, boolean c14nSupport, RuntimeAnnotationReader ar, boolean xmlAccessorFactorySupport, boolean allNillable, boolean retainPropertyInfo, boolean improvedXsiTypeHandling)
          Deprecated. use createContext( Class[] classes, Map properties) method instead
static javax.xml.bind.JAXBContext createContext(java.lang.Class[] classes, java.util.Map<java.lang.String,java.lang.Object> properties)
          The API will invoke this method via reflection
static javax.xml.bind.JAXBContext createContext(java.lang.String contextPath, java.lang.ClassLoader classLoader, java.util.Map<java.lang.String,java.lang.Object> properties)
          The API will invoke this method via reflection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USE_JAXB_PROPERTIES

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

ContextFactory

public ContextFactory()
Method Detail

createContext

public static javax.xml.bind.JAXBContext createContext(java.lang.Class[] classes,
                                                       java.util.Map<java.lang.String,java.lang.Object> properties)
                                                throws javax.xml.bind.JAXBException
The API will invoke this method via reflection

Throws:
javax.xml.bind.JAXBException

createContext

@Deprecated
public static JAXBRIContext createContext(java.lang.Class[] classes,
                                                     java.util.Collection<TypeReference> typeRefs,
                                                     java.util.Map<java.lang.Class,java.lang.Class> subclassReplacements,
                                                     java.lang.String defaultNsUri,
                                                     boolean c14nSupport,
                                                     RuntimeAnnotationReader ar,
                                                     boolean xmlAccessorFactorySupport,
                                                     boolean allNillable,
                                                     boolean retainPropertyInfo)
                                   throws javax.xml.bind.JAXBException
Deprecated. use createContext(Class[] classes, Map properties) method instead

Parameters:
classes -
typeRefs -
subclassReplacements -
defaultNsUri -
c14nSupport -
ar -
xmlAccessorFactorySupport -
allNillable -
retainPropertyInfo -
Returns:
Throws:
javax.xml.bind.JAXBException

createContext

@Deprecated
public static JAXBRIContext createContext(java.lang.Class[] classes,
                                                     java.util.Collection<TypeReference> typeRefs,
                                                     java.util.Map<java.lang.Class,java.lang.Class> subclassReplacements,
                                                     java.lang.String defaultNsUri,
                                                     boolean c14nSupport,
                                                     RuntimeAnnotationReader ar,
                                                     boolean xmlAccessorFactorySupport,
                                                     boolean allNillable,
                                                     boolean retainPropertyInfo,
                                                     boolean improvedXsiTypeHandling)
                                   throws javax.xml.bind.JAXBException
Deprecated. use createContext( Class[] classes, Map properties) method instead

Parameters:
classes -
typeRefs -
subclassReplacements -
defaultNsUri -
c14nSupport -
ar -
xmlAccessorFactorySupport -
allNillable -
retainPropertyInfo -
improvedXsiTypeHandling -
Returns:
Throws:
javax.xml.bind.JAXBException

createContext

public static javax.xml.bind.JAXBContext createContext(java.lang.String contextPath,
                                                       java.lang.ClassLoader classLoader,
                                                       java.util.Map<java.lang.String,java.lang.Object> properties)
                                                throws javax.xml.bind.JAXBException
The API will invoke this method via reflection.

Throws:
javax.xml.bind.JAXBException