|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axis2.jaxws.message.databinding.JAXBUtils
public class JAXBUtils
JAXB Utilites to pool JAXBContext and related objects.
Nested Class Summary | |
---|---|
static class |
JAXBUtils.CONSTRUCTION_TYPE
|
Field Summary | |
---|---|
static String |
DEFAULT_NAMESPACE_REMAP
|
Constructor Summary | |
---|---|
JAXBUtils()
|
Method Summary | |
---|---|
static JAXBContext |
getJAXBContext(TreeSet<String> contextPackages)
Deprecated. |
static JAXBContext |
getJAXBContext(TreeSet<String> contextPackages,
ClassLoader cacheKey)
Deprecated. |
static JAXBContext |
getJAXBContext(TreeSet<String> contextPackages,
Holder<JAXBUtils.CONSTRUCTION_TYPE> constructionType,
boolean forceArrays,
String key,
ClassLoader cacheKey,
Map<String,?> properties)
Get a JAXBContext for the class Note: The contextPackage object is used by multiple threads. |
static JAXBContext |
getJAXBContext(TreeSet<String> contextPackages,
Holder<JAXBUtils.CONSTRUCTION_TYPE> constructionType,
String key)
|
static JAXBContext |
getJAXBContext(TreeSet<String> contextPackages,
Holder<JAXBUtils.CONSTRUCTION_TYPE> constructionType,
String key,
ClassLoader cacheKey,
Map<String,?> properties)
Get a JAXBContext for the class Note: The contextPackage object is used by multiple threads. |
static JAXBIntrospector |
getJAXBIntrospector(JAXBContext context)
get JAXB Introspector |
static Marshaller |
getJAXBMarshaller(JAXBContext context)
Get JAXBMarshaller |
static Unmarshaller |
getJAXBUnmarshaller(JAXBContext context)
Get the unmarshaller. |
protected static List<String> |
pruneDirectives(TreeSet<String> contextPackages)
The contextPackages may declare overrides. |
static void |
releaseJAXBIntrospector(JAXBContext context,
JAXBIntrospector introspector)
Release JAXBIntrospector Do not call this method if an exception occurred while using the JAXBIntrospector. |
static void |
releaseJAXBMarshaller(JAXBContext context,
Marshaller marshaller)
releaseJAXBMarshalller Do not call this method if an exception occurred while using the Marshaller. |
static void |
releaseJAXBUnmarshaller(JAXBContext context,
Unmarshaller unmarshaller)
Release Unmarshaller Do not call this method if an exception occurred while using the Unmarshaller. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_NAMESPACE_REMAP
Constructor Detail |
---|
public JAXBUtils()
Method Detail |
---|
public static JAXBContext getJAXBContext(TreeSet<String> contextPackages) throws JAXBException
contextPackage
- SetJAXBException
public static JAXBContext getJAXBContext(TreeSet<String> contextPackages, ClassLoader cacheKey) throws JAXBException
contextPackage
- SetcacheKey
- ClassLoader
JAXBException
public static JAXBContext getJAXBContext(TreeSet<String> contextPackages, Holder<JAXBUtils.CONSTRUCTION_TYPE> constructionType, String key) throws JAXBException
JAXBException
public static JAXBContext getJAXBContext(TreeSet<String> contextPackages, Holder<JAXBUtils.CONSTRUCTION_TYPE> constructionType, String key, ClassLoader cacheKey, Map<String,?> properties) throws JAXBException
contextPackage
- SetcontructionType
- (output value that indicates how the context was constructed)cacheKey
- ClassLoader
JAXBException
public static JAXBContext getJAXBContext(TreeSet<String> contextPackages, Holder<JAXBUtils.CONSTRUCTION_TYPE> constructionType, boolean forceArrays, String key, ClassLoader cacheKey, Map<String,?> properties) throws JAXBException
contextPackage
- SetcontructionType
- (output value that indicates how the context was constructed)forceArrays
- (forces the returned JAXBContext to include the array types)cacheKey
- ClassLoader
JAXBException
protected static List<String> pruneDirectives(TreeSet<String> contextPackages)
contextPackages
-
public static Unmarshaller getJAXBUnmarshaller(JAXBContext context) throws JAXBException
context
- JAXBContext
JAXBException
public static void releaseJAXBUnmarshaller(JAXBContext context, Unmarshaller unmarshaller)
context
- JAXBContextunmarshaller
- Unmarshallerpublic static Marshaller getJAXBMarshaller(JAXBContext context) throws JAXBException
context
- JAXBContext
JAXBException
public static void releaseJAXBMarshaller(JAXBContext context, Marshaller marshaller)
context
- JAXBContextmarshaller
- Marshallerpublic static JAXBIntrospector getJAXBIntrospector(JAXBContext context) throws JAXBException
context
- JAXBContext
JAXBException
public static void releaseJAXBIntrospector(JAXBContext context, JAXBIntrospector introspector)
context
- JAXBContextintrospector
- JAXBIntrospector
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |