Package com.sun.xml.ws.developer
Class UsesJAXBContextFeature
java.lang.Object
jakarta.xml.ws.WebServiceFeature
com.sun.xml.ws.developer.UsesJAXBContextFeature
@ManagedData
public class UsesJAXBContextFeature
extends jakarta.xml.ws.WebServiceFeature
A
WebServiceFeature that instructs the JAX-WS runtime to use a specific JAXBContextFactory
instance of creating JAXBContext.- Since:
- 2.1.5
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstant value identifying theUsesJAXBContextfeature.Fields inherited from class jakarta.xml.ws.WebServiceFeature
enabled -
Constructor Summary
ConstructorsConstructorDescriptionUsesJAXBContextFeature(JAXBContextFactory factory) CreatesUsesJAXBContextFeature.UsesJAXBContextFeature(Class<? extends JAXBContextFactory> factoryClass) CreatesUsesJAXBContextFeature.UsesJAXBContextFeature(org.glassfish.jaxb.runtime.api.JAXBRIContext context) CreatesUsesJAXBContextFeature. -
Method Summary
Modifier and TypeMethodDescriptionGets theJAXBContextFactoryinstance to be used for creatingJAXBContextfor SEI.getID()Methods inherited from class jakarta.xml.ws.WebServiceFeature
isEnabled
-
Field Details
-
ID
Constant value identifying theUsesJAXBContextfeature.- See Also:
-
-
Constructor Details
-
UsesJAXBContextFeature
CreatesUsesJAXBContextFeature.- Parameters:
factoryClass- This class has to have a public no-arg constructor, which will be invoked to create a new instance.JAXBContextFactory.createJAXBContext(SEIModel, List, List)will be then called to createJAXBContext.
-
UsesJAXBContextFeature
CreatesUsesJAXBContextFeature. This version allowsJAXBContextFactoryto carry application specific state.- Parameters:
factory- Uses a specific instance ofJAXBContextFactoryto createJAXBContext.
-
UsesJAXBContextFeature
public UsesJAXBContextFeature(@Nullable org.glassfish.jaxb.runtime.api.JAXBRIContext context) CreatesUsesJAXBContextFeature. This version allows you to createJAXBRIContextupfront and uses it.
-
-
Method Details
-
getFactory
Gets theJAXBContextFactoryinstance to be used for creatingJAXBContextfor SEI.- Returns:
- null if the default
JAXBContextshall be used.
-
getID
- Specified by:
getIDin classjakarta.xml.ws.WebServiceFeature
-