public final class JaxbContextFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static JAXBContext |
getJaxbContextForClass(Class<?>... classesToBeBound) |
static JAXBContext |
getJaxbContextForPackage(Package pack) |
static void |
initJaxbContext(Class<?>... classesToBeBound)
Create a JAXBContext with all the referenced classes in input.
|
static void |
initJaxbContext(Class<?> keyClass,
boolean override,
Class<?>... classesToBeBound)
Create a JAXBContext with all the referenced classes in classesToBeBound.
|
static void |
initJaxbContext(Package packageInstance)
Create a JAXBContext with all the classes in the provided
Package. |
static void |
reset()
Method to clear the cached instances.
|
public static void initJaxbContext(Package packageInstance)
Package.packageInstance - public static void initJaxbContext(Class<?> keyClass, boolean override, Class<?>... classesToBeBound)
keyClass - the context cache keyoverride - true if the context must be refreshed in the cache, false otherwiseclassesToBeBound - the classes to be put in the jaxb context for the given keyClasspublic static void initJaxbContext(Class<?>... classesToBeBound)
classesToBeBound - public static JAXBContext getJaxbContextForPackage(Package pack)
public static JAXBContext getJaxbContextForClass(Class<?>... classesToBeBound) throws JAXBException
JAXBExceptionpublic static void reset()
Connector Packaging generic 4.3.0-beta-3 API
Copyright © {inceptionYear}-2022 eHealth. All Rights Reserved.