## Uses of Class
javax.xml.bind.JAXBContext

- Packages that use JAXBContext
  Package | Description
  --- | ---
  javax.xml.bind | Provides a runtime binding framework for client applications including unmarshalling, marshalling, and validation capabilities.
  javax.xml.bind.util | Useful client utility classes.
  javax.xml.ws | This package contains the core JAX-WS APIs.
  javax.xml.ws.handler.soap | This package defines APIs for SOAP message handlers.
  javax.xml.ws.spi | This package defines SPIs for JAX-WS.

- - ### Uses of JAXBContext in javax.xml.bind

    Methods in javax.xml.bind that return JAXBContext
    Modifier and Type | Method and Description
    --- | ---
    `static JAXBContext` | JAXBContext.`newInstance(Class... classesToBeBound)` Obtain a new instance of a `JAXBContext` class.
    `static JAXBContext` | JAXBContext.`newInstance(Class[] classesToBeBound, Map<String,?> properties)` Obtain a new instance of a `JAXBContext` class.
    `static JAXBContext` | JAXBContext.`newInstance(String contextPath)` Obtain a new instance of a `JAXBContext` class.
    `static JAXBContext` | JAXBContext.`newInstance(String contextPath, ClassLoader classLoader)` Obtain a new instance of a `JAXBContext` class.
    `static JAXBContext` | JAXBContext.`newInstance(String contextPath, ClassLoader classLoader, Map<String,?> properties)` Obtain a new instance of a `JAXBContext` class.

  - ### Uses of JAXBContext in javax.xml.bind.util

    Constructors in javax.xml.bind.util with parameters of type JAXBContext
    Constructor and Description
    `JAXBResult(JAXBContext context)` Creates a new instance that uses the specified JAXBContext to unmarshal.
    `JAXBSource(JAXBContext context, Object contentObject)` Creates a new `Source` for the given content object.

  - ### Uses of JAXBContext in javax.xml.ws

    Methods in javax.xml.ws with parameters of type JAXBContext
    Modifier and Type | Method and Description
    --- | ---
    `Dispatch<Object>` | Service.`createDispatch(EndpointReference endpointReference, JAXBContext context, Service.Mode mode, WebServiceFeature... features)` Creates a `Dispatch` instance for use with JAXB generated objects.
    `Dispatch<Object>` | Service.`createDispatch(QName portName, JAXBContext context, Service.Mode mode)` Creates a `Dispatch` instance for use with JAXB generated objects.
    `Dispatch<Object>` | Service.`createDispatch(QName portName, JAXBContext context, Service.Mode mode, WebServiceFeature... features)` Creates a `Dispatch` instance for use with JAXB generated objects.
    `Object` | LogicalMessage.`getPayload(JAXBContext context)` Gets the message payload as a JAXB object.
    `void` | LogicalMessage.`setPayload(Object payload, JAXBContext context)` Sets the message payload

  - ### Uses of JAXBContext in javax.xml.ws.handler.soap

    Methods in javax.xml.ws.handler.soap with parameters of type JAXBContext
    Modifier and Type | Method and Description
    --- | ---
    `Object[]` | SOAPMessageContext.`getHeaders(QName header, JAXBContext context, boolean allRoles)` Gets headers that have a particular qualified name from the message in the message context.

  - ### Uses of JAXBContext in javax.xml.ws.spi

    Methods in javax.xml.ws.spi with parameters of type JAXBContext
    Modifier and Type | Method and Description
    --- | ---
    `abstract Dispatch<Object>` | ServiceDelegate.`createDispatch(EndpointReference endpointReference, JAXBContext context, Service.Mode mode, WebServiceFeature... features)` Creates a `Dispatch` instance for use with JAXB generated objects.
    `abstract Dispatch<Object>` | ServiceDelegate.`createDispatch(QName portName, JAXBContext context, Service.Mode mode)` Creates a `Dispatch` instance for use with JAXB generated objects.
    `abstract Dispatch<Object>` | ServiceDelegate.`createDispatch(QName portName, JAXBContext context, Service.Mode mode, WebServiceFeature... features)` Creates a `Dispatch` instance for use with JAXB generated objects.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.