@ManagedData public class UsesJAXBContextFeature extends WebServiceFeature
WebServiceFeature
that instructs the JAX-WS runtime to use a specific JAXBContextFactory
instance of creating JAXBContext
.UsesJAXBContext
Modifier and Type | Field and Description |
---|---|
static String |
ID
Constant value identifying the
UsesJAXBContext feature. |
enabled
Constructor and Description |
---|
UsesJAXBContextFeature(Class<? extends JAXBContextFactory> factoryClass)
Creates
UsesJAXBContextFeature . |
UsesJAXBContextFeature(JAXBContextFactory factory)
Creates
UsesJAXBContextFeature . |
UsesJAXBContextFeature(com.sun.xml.bind.api.JAXBRIContext context)
Creates
UsesJAXBContextFeature . |
Modifier and Type | Method and Description |
---|---|
JAXBContextFactory |
getFactory()
Gets the
JAXBContextFactory instance to be used for creating JAXBContext for SEI. |
String |
getID() |
isEnabled
public static final String ID
UsesJAXBContext
feature.public UsesJAXBContextFeature(@NotNull Class<? extends JAXBContextFactory> factoryClass)
UsesJAXBContextFeature
.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 create JAXBContext
.public UsesJAXBContextFeature(@Nullable JAXBContextFactory factory)
UsesJAXBContextFeature
.
This version allows JAXBContextFactory
to carry application specific state.factory
- Uses a specific instance of JAXBContextFactory
to create JAXBContext
.public UsesJAXBContextFeature(@Nullable com.sun.xml.bind.api.JAXBRIContext context)
UsesJAXBContextFeature
.
This version allows you to create JAXBRIContext
upfront and uses it.@ManagedAttribute @Nullable public JAXBContextFactory getFactory()
JAXBContextFactory
instance to be used for creating JAXBContext
for SEI.JAXBContext
shall be used.@ManagedAttribute public String getID()
getID
in class WebServiceFeature
Copyright © 2015 Oracle Corporation. All rights reserved.