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.jakarta.xml.bind.Marshaller
createMarshaller
(Class<?> boundClass) Returns a newMarshaller
for encoding an object of the given class.jakarta.xml.bind.Unmarshaller
createUnmarshaller
(Class<?> boundClass) Returns a newUnmarshaller
for decoding to an object of the given class.
-
Method Details
-
createMarshaller
jakarta.xml.bind.Marshaller createMarshaller(Class<?> boundClass) throws jakarta.xml.bind.JAXBException Returns a newMarshaller
for encoding an object of the given class.- Throws:
jakarta.xml.bind.JAXBException
-
createUnmarshaller
jakarta.xml.bind.Unmarshaller createUnmarshaller(Class<?> boundClass) throws jakarta.xml.bind.JAXBException Returns a newUnmarshaller
for decoding to an object of the given class.- Throws:
jakarta.xml.bind.JAXBException
-
create
Returns a newJaxbBindingFactory
that creates and cachesJAXBContexts
for each requested type.
-