Class JAXBContextFactory


  • public class JAXBContextFactory
    extends java.lang.Object
    Static Factory Class which is managing a JAXB2 Marshaller instance.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static jakarta.xml.bind.JAXBContext getInstance()
      Create and return a new Marshaller Instance.
      static void init()
      Initialize the marshaller instance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • init

        public static void init()
                         throws jakarta.xml.bind.JAXBException
        Initialize the marshaller instance.
        Throws:
        jakarta.xml.bind.JAXBException
      • getInstance

        public static jakarta.xml.bind.JAXBContext getInstance()
                                                        throws jakarta.xml.bind.JAXBException
        Create and return a new Marshaller Instance.
        Returns:
        New Marshaller instance.
        Throws:
        jakarta.xml.bind.JAXBException