public interface JaxbBindingFactory
Creates new Marshaller or Unmarshaller objects on demand for use by an adapter.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a new JaxbBindingFactory that creates and caches JAXBContexts for each requested type.
    jakarta.xml.bind.Marshaller
    createMarshaller(Class<?> boundClass)
    Returns a new Marshaller for encoding an object of the given class.
    jakarta.xml.bind.Unmarshaller
    createUnmarshaller(Class<?> boundClass)
    Returns a new Unmarshaller 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 new Marshaller 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 new Unmarshaller for decoding to an object of the given class.
      Throws:
      jakarta.xml.bind.JAXBException
    • create

      static JaxbBindingFactory create()
      Returns a new JaxbBindingFactory that creates and caches JAXBContexts for each requested type.