Interface JAXBContextFactory


  • public interface JAXBContextFactory
    Factory to create JAXBContext.

    JAX-WS uses JAXB to perform databinding when you use the service endpoint interface, and normally the JAX-WS RI drives JAXB and creates a necessary JAXBContext automatically.

    This annotation is a JAX-WS RI vendor-specific feature, which lets applications create JAXBRIContext (which is the JAXB RI's JAXBContext implementation.) Combined with the JAXB RI vendor extensions defined in JAXBRIContext, appliation can use this to fine-tune how the databinding happens, such as by adding more classes to the binding context, by controlling the namespace mappings, and so on.

    Applications should either use UsesJAXBContextFeature or UsesJAXBContext to instruct the JAX-WS runtime to use a custom factory.

    Since:
    2.1.5
    Author:
    Kohsuke Kawaguchi