public class CachedJaxbContext extends Object
This class is thread safe.
Constructor and Description |
---|
CachedJaxbContext() |
Modifier and Type | Method and Description |
---|---|
Marshaller |
createMarshaller(Class type)
Return a handle to JAXB unmarshaller for a particular data type.
|
Unmarshaller |
createUnMarshaller(Class type)
Return a handle to JAXB unmarshaller for a particular data type.
|
JAXBContext |
getJaxbContext(Class type)
Once constructed this object can be stored as static member of class that performs JAX XML processing.
|
public JAXBContext getJaxbContext(Class type) throws JAXBException
type
- contains the class name that is being marshalled/unmarshalled. *JAXBException
- in the event the JAXBContext cannot be obtained.public Unmarshaller createUnMarshaller(Class type) throws JAXBException
type
- contains the class name associated with a particular data type.JAXBException
- in the event the unmarshaller cannot be retrieved.public Marshaller createMarshaller(Class type) throws JAXBException
type
- contains the class name associated with a particular data type.JAXBException
- in the event the marshaller cannot be retrieved.Copyright © 2003-2016, The Apache Software Foundation. All Rights Reserved. Generated 20160718-1621