public final class JAXBContextCache extends Object
Modifier and Type | Class and Description |
---|---|
static class |
JAXBContextCache.CachedContextAndSchemas
Return holder of the context, classes, etc...
|
Modifier and Type | Method and Description |
---|---|
static void |
addPackage(Set<Class<?>> classes,
String pkg,
ClassLoader loader) |
static void |
clearCaches()
Clear any caches to make sure new contexts are created
|
static JAXBContextCache.CachedContextAndSchemas |
getCachedContextAndSchemas(Class<?>... cls) |
static JAXBContextCache.CachedContextAndSchemas |
getCachedContextAndSchemas(Set<Class<?>> classes,
String defaultNs,
Map<String,Object> props,
Collection<Object> typeRefs,
boolean exact) |
static JAXBContextCache.CachedContextAndSchemas |
getCachedContextAndSchemas(String pkg,
Map<String,Object> props,
ClassLoader loader) |
static void |
scanPackages(Set<Class<?>> classes) |
public static void clearCaches()
public static JAXBContextCache.CachedContextAndSchemas getCachedContextAndSchemas(Class<?>... cls) throws JAXBException
JAXBException
public static JAXBContextCache.CachedContextAndSchemas getCachedContextAndSchemas(String pkg, Map<String,Object> props, ClassLoader loader) throws JAXBException
JAXBException
public static JAXBContextCache.CachedContextAndSchemas getCachedContextAndSchemas(Set<Class<?>> classes, String defaultNs, Map<String,Object> props, Collection<Object> typeRefs, boolean exact) throws JAXBException
JAXBException
public static void addPackage(Set<Class<?>> classes, String pkg, ClassLoader loader)
Apache CXF