Package com.sun.xml.ws.developer
Annotation Type UsesJAXBContext
-
@Target({TYPE,METHOD,FIELD}) @Retention(RUNTIME) @Documented @WebServiceFeatureAnnotation(id="http://jax-ws.dev.java.net/features/uses-jaxb-context", bean=UsesJAXBContextFeature.class) public @interface UsesJAXBContext
This feature instructs that the specifiedJAXBContextFactory
be used for performing data-binding for the SEI.For example,
@WebService @UsesJAXBContext(MyJAXBContextFactory.class) public class HelloService { ... }
If your
JAXBContextFactory
needs to carry some state from your calling application, you can useUsesJAXBContextFeature
to pass in an instance ofJAXBContextFactory
, instead of using this to specify the type.- Since:
- 2.1.5
- Author:
- Kohsuke Kawaguchi
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description Class<? extends JAXBContextFactory>
value
Designates theJAXBContextFactory
to be used to create theJAXBContext
object, which in turn will be used by the JAX-WS runtime to marshal/unmarshal parameters and return values to/from XML.
-
-
-
Element Detail
-
value
Class<? extends JAXBContextFactory> value
Designates theJAXBContextFactory
to be used to create theJAXBContext
object, which in turn will be used by the JAX-WS runtime to marshal/unmarshal parameters and return values to/from XML.
-
-