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
JAXBException
public static void reset()
Connector Packaging TECHNICAL 4.4.0 API
Copyright © {inceptionYear}-2023 eHealth. All Rights Reserved.