Factory that creates new JAXBContext instances.
JAXBContextFactory can be located using java.util.ServiceLoader#load(Class)
| Modifier and Type | Method and Description |
|---|---|
| public JAXBContext | Returns: A new instance of aJAXBContext.List of java classes to be recognized by the new classesToBeBound, Map<String, ?> JAXBContext.
Classes in classesToBeBound that are in named modules must be in a package
that is open to at least the jakarta.xml.bind module.
Can be empty, in which case a JAXBContext that only knows about
spec-defined classes will be returned.provider-specific properties. Can be null, which means the same thing as passing
in an empty map. properties)
Create a new instance of a |
| public JAXBContext | Returns: a new instance of aJAXBContextList of java package names that contain schema derived classes.
Classes in contextPath, ClassLoader classesToBeBound that are in named modules must be in a package
that is open to at least the jakarta.xml.bind module.This class loader will be used to locate the implementation classes. classLoader, Map<String, ?> provider-specific properties. Can be null, which means the same thing as passing
in an empty map. properties)
Create a new instance of a |
| createContext | back to summary |
|---|---|
| public JAXBContext createContext(Class<?>[] classesToBeBound, Map<String, ?> properties) throws JAXBException
Create a new instance of a
For semantics see
| |
| createContext | back to summary |
|---|---|
| public JAXBContext createContext(String contextPath, ClassLoader classLoader, Map<String, ?> properties) throws JAXBException
Create a new instance of a
For semantics see
The interpretation of properties is up to implementations. Implementations must
throw
| |