Class ContextJAXBUtils


  • public final class ContextJAXBUtils
    extends Object
    Holder for utility methods relating to contexts, allows to lazily load JAXB compared to ContextUtils.
    • Method Detail

      • getJAXBContext

        public static javax.xml.bind.JAXBContext getJAXBContext()
                                                         throws javax.xml.bind.JAXBException
        Retrieve a JAXBContext for marshalling and unmarshalling JAXB generated types.
        Returns:
        a JAXBContext
        Throws:
        javax.xml.bind.JAXBException
      • setJAXBContext

        public static void setJAXBContext​(javax.xml.bind.JAXBContext ctx)
        Set the encapsulated JAXBContext (used by unit tests).
        Parameters:
        ctx - JAXBContext