org.apache.cxf.ws.addressing

## Class ContextJAXBUtils

- java.lang.Object
- - org.apache.cxf.ws.addressing.ContextJAXBUtils

-     public final class ContextJAXBUtils
      extends Object

  Holder for utility methods relating to contexts, allows to lazily load JAXB compared to ContextUtils.

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static JAXBContext` | `getJAXBContext()` Retrieve a JAXBContext for marshalling and unmarshalling JAXB generated types.
    `static void` | `setJAXBContext(JAXBContext ctx)` Set the encapsulated JAXBContext (used by unit tests).

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### getJAXBContext

          public static JAXBContext getJAXBContext()
                                            throws JAXBException

      Retrieve a JAXBContext for marshalling and unmarshalling JAXB generated types.
      Returns:
        a JAXBContext
      Throws:
        `JAXBException`

    - #### setJAXBContext

          public static void setJAXBContext(JAXBContext ctx)

      Set the encapsulated JAXBContext (used by unit tests).
      Parameters:
        `ctx` - JAXBContext

Apache CXF