Class JAXBContextFactory


  • public class JAXBContextFactory
    extends Object

    Purpose:An EclipseLink specific JAXBContextFactory. This class can be specified in a jaxb.properties file to make use of EclipseLink's JAXB 2.1 implementation.

    Responsibilities:

    • Create a JAXBContext from an array of Classes and a Properties object
    • Create a JAXBContext from a context path and a classloader

    This class is the entry point into in EclipseLink's JAXB 2.1 Runtime. It provides the required factory methods and is invoked by javax.xml.bind.JAXBContext.newInstance() to create new instances of JAXBContext. When creating a JAXBContext from a contextPath, the list of classes is derived either from an ObjectFactory class (schema-to-java) or a jaxb.index file (java-to-schema).

    Author:
    mmacivor
    See Also:
    JAXBContext, JAXBContext, Generator