public class JAXBContextFactory extends Object
JAXBContext,
IRuntimeRepository| Constructor and Description |
|---|
JAXBContextFactory() |
| Modifier and Type | Method and Description |
|---|---|
static JAXBContext |
newContext(IRuntimeRepository repository)
Creates a new JAXBContext that can marshall / unmarshall all modell classes defined in the
given repository.
|
static JAXBContext |
newContext(IRuntimeRepository repository,
ClassLoader cl)
Creates a new JAXBContext that can marshall / unmarshall all modell classes defined in the
given repository.
|
public static JAXBContext newContext(IRuntimeRepository repository) throws JAXBException, ClassNotFoundException
repository - The repository that contains the information about the model classesClassNotFoundException - If one of the model classes was not found.JAXBException - The exception thrown by JAXBContext.newInstance(Class...)NullPointerException - if repository is null.public static JAXBContext newContext(IRuntimeRepository repository, ClassLoader cl) throws JAXBException, ClassNotFoundException
repository - The repository that contains the information about the model classescl - The class loader to load the model classes.ClassNotFoundException - If one of the model classes was not found.JAXBException - The exception thrown by JAXBContext.newInstance(Class...)NullPointerException - if one of the parametes is null.Copyright © 2016. All rights reserved.