Module methanol.adapter.jaxb
Interface JaxbBindingFactory
public interface JaxbBindingFactory
Creates new
Marshaller
or Unmarshaller
objects on demand for use by an adapter.-
Method Summary
Modifier and TypeMethodDescriptionstatic JaxbBindingFactory
create()
Returns a newJaxbBindingFactory
that creates and cachesJAXBContexts
for each requested type.javax.xml.bind.Marshaller
createMarshaller
(Class<?> boundClass) Returns a newMarshaller
for encoding an object of the given class.javax.xml.bind.Unmarshaller
createUnmarshaller
(Class<?> boundClass) Returns a newUnmarshaller
for decoding to an object of the given class.
-
Method Details
-
createMarshaller
Returns a newMarshaller
for encoding an object of the given class.- Throws:
javax.xml.bind.JAXBException
-
createUnmarshaller
javax.xml.bind.Unmarshaller createUnmarshaller(Class<?> boundClass) throws javax.xml.bind.JAXBException Returns a newUnmarshaller
for decoding to an object of the given class.- Throws:
javax.xml.bind.JAXBException
-
create
Returns a newJaxbBindingFactory
that creates and cachesJAXBContexts
for each requested type.
-