|
||||||||||
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 java.lang.String |
DEFAULT_NAMESPACE_REMAP
|
Constructor Summary | |
---|---|
JAXBUtils()
|
Method Summary | |
---|---|
static JAXBContext |
getJAXBContext(java.util.TreeSet<java.lang.String> contextPackages)
Deprecated. |
static JAXBContext |
getJAXBContext(java.util.TreeSet<java.lang.String> contextPackages,
java.lang.ClassLoader cacheKey)
Deprecated. |
static JAXBContext |
getJAXBContext(java.util.TreeSet<java.lang.String> contextPackages,
Holder<JAXBUtils.CONSTRUCTION_TYPE> constructionType,
java.lang.String key)
|
static JAXBContext |
getJAXBContext(java.util.TreeSet<java.lang.String> contextPackages,
Holder<JAXBUtils.CONSTRUCTION_TYPE> constructionType,
java.lang.String key,
java.lang.ClassLoader cacheKey,
java.util.Map<java.lang.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. |
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 java.lang.String DEFAULT_NAMESPACE_REMAP
Constructor Detail |
---|
public JAXBUtils()
Method Detail |
---|
public static JAXBContext getJAXBContext(java.util.TreeSet<java.lang.String> contextPackages) throws JAXBException
contextPackage
- SetJAXBException
public static JAXBContext getJAXBContext(java.util.TreeSet<java.lang.String> contextPackages, java.lang.ClassLoader cacheKey) throws JAXBException
contextPackage
- SetcacheKey
- ClassLoader
JAXBException
public static JAXBContext getJAXBContext(java.util.TreeSet<java.lang.String> contextPackages, Holder<JAXBUtils.CONSTRUCTION_TYPE> constructionType, java.lang.String key) throws JAXBException
JAXBException
public static JAXBContext getJAXBContext(java.util.TreeSet<java.lang.String> contextPackages, Holder<JAXBUtils.CONSTRUCTION_TYPE> constructionType, java.lang.String key, java.lang.ClassLoader cacheKey, java.util.Map<java.lang.String,?> properties) throws JAXBException
contextPackage
- SetcontructionType
- (output value that indicates how the context was constructed)cacheKey
- ClassLoader
JAXBException
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 |