|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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
|
Constructor Summary | |
---|---|
JAXBUtils()
|
Method Summary | |
---|---|
static javax.xml.bind.JAXBContext |
getJAXBContext(java.util.TreeSet<java.lang.String> contextPackages)
Deprecated. |
static javax.xml.bind.JAXBContext |
getJAXBContext(java.util.TreeSet<java.lang.String> contextPackages,
java.lang.ClassLoader cacheKey)
Deprecated. |
static javax.xml.bind.JAXBContext |
getJAXBContext(java.util.TreeSet<java.lang.String> contextPackages,
Holder<JAXBUtils.CONSTRUCTION_TYPE> constructionType,
java.lang.String key)
|
static javax.xml.bind.JAXBContext |
getJAXBContext(java.util.TreeSet<java.lang.String> contextPackages,
Holder<JAXBUtils.CONSTRUCTION_TYPE> constructionType,
java.lang.String key,
java.lang.ClassLoader cacheKey)
Get a JAXBContext for the class Note: The contextPackage object is used by multiple threads. |
static javax.xml.bind.JAXBIntrospector |
getJAXBIntrospector(javax.xml.bind.JAXBContext context)
get JAXB Introspector |
static javax.xml.bind.Marshaller |
getJAXBMarshaller(javax.xml.bind.JAXBContext context)
Get JAXBMarshaller |
static javax.xml.bind.Unmarshaller |
getJAXBUnmarshaller(javax.xml.bind.JAXBContext context)
Get the unmarshaller. |
static void |
releaseJAXBIntrospector(javax.xml.bind.JAXBContext context,
javax.xml.bind.JAXBIntrospector introspector)
Release JAXBIntrospector Do not call this method if an exception occurred while using the JAXBIntrospector. |
static void |
releaseJAXBMarshaller(javax.xml.bind.JAXBContext context,
javax.xml.bind.Marshaller marshaller)
releaseJAXBMarshalller Do not call this method if an exception occurred while using the Marshaller. |
static void |
releaseJAXBUnmarshaller(javax.xml.bind.JAXBContext context,
javax.xml.bind.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 |
Constructor Detail |
---|
public JAXBUtils()
Method Detail |
---|
public static javax.xml.bind.JAXBContext getJAXBContext(java.util.TreeSet<java.lang.String> contextPackages) throws javax.xml.bind.JAXBException
contextPackage
- Setjavax.xml.bind.JAXBException
public static javax.xml.bind.JAXBContext getJAXBContext(java.util.TreeSet<java.lang.String> contextPackages, java.lang.ClassLoader cacheKey) throws javax.xml.bind.JAXBException
contextPackage
- SetcacheKey
- ClassLoader
javax.xml.bind.JAXBException
public static javax.xml.bind.JAXBContext getJAXBContext(java.util.TreeSet<java.lang.String> contextPackages, Holder<JAXBUtils.CONSTRUCTION_TYPE> constructionType, java.lang.String key) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public static javax.xml.bind.JAXBContext getJAXBContext(java.util.TreeSet<java.lang.String> contextPackages, Holder<JAXBUtils.CONSTRUCTION_TYPE> constructionType, java.lang.String key, java.lang.ClassLoader cacheKey) throws javax.xml.bind.JAXBException
contextPackage
- SetcontructionType
- (output value that indicates how the context was constructed)cacheKey
- ClassLoader
javax.xml.bind.JAXBException
public static javax.xml.bind.Unmarshaller getJAXBUnmarshaller(javax.xml.bind.JAXBContext context) throws javax.xml.bind.JAXBException
context
- JAXBContext
javax.xml.bind.JAXBException
public static void releaseJAXBUnmarshaller(javax.xml.bind.JAXBContext context, javax.xml.bind.Unmarshaller unmarshaller)
context
- JAXBContextunmarshaller
- Unmarshallerpublic static javax.xml.bind.Marshaller getJAXBMarshaller(javax.xml.bind.JAXBContext context) throws javax.xml.bind.JAXBException
context
- JAXBContext
javax.xml.bind.JAXBException
public static void releaseJAXBMarshaller(javax.xml.bind.JAXBContext context, javax.xml.bind.Marshaller marshaller)
context
- JAXBContextmarshaller
- Marshallerpublic static javax.xml.bind.JAXBIntrospector getJAXBIntrospector(javax.xml.bind.JAXBContext context) throws javax.xml.bind.JAXBException
context
- JAXBContext
javax.xml.bind.JAXBException
public static void releaseJAXBIntrospector(javax.xml.bind.JAXBContext context, javax.xml.bind.JAXBIntrospector introspector)
context
- JAXBContextintrospector
- JAXBIntrospector
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |