public class JAXBContextFactory extends Object
This factory is needed because the JAXBContext needs a user defined context path, which means that it cannot be created at the time the container creates its component graph.
Modifier and Type | Field and Description |
---|---|
static String |
FACTORY_CLASS |
Constructor and Description |
---|
JAXBContextFactory() |
Modifier and Type | Method and Description |
---|---|
(package private) static String |
getContextPath(Class<?>... classes) |
JAXBContext |
newInstance(Class<?>... classes)
Returns a new JAXBContext for the context path defined by the given list of classes.
|
private static JAXBContext |
newInstance(String contextPath,
ClassLoader classLoader) |
public static final String FACTORY_CLASS
public JAXBContext newInstance(Class<?>... classes)
classes
- One class per package that contains schema derived classes and/or
java to schema (JAXB-annotated) mapped classesprivate static JAXBContext newInstance(String contextPath, ClassLoader classLoader)
Copyright © 2017. All rights reserved.