public class JaxWsServerFactoryBean extends ServerFactoryBean
JaxWsServerFactoryBean sf = new JaxWsServerFactoryBean(); sf.setServiceClass(MyService.class); sf.setAddress("http://acme.com/myService"); sf.create();This will start a server and register it with the ServerManager.
Modifier and Type | Field and Description |
---|---|
protected boolean |
doInit |
protected List<Handler> |
handlers |
address, bindingConfig, bindingFactory, bindingId, bus, conduitSelector, dataBinding, destinationFactory, endpointName, endpointReference, features, properties, publishedEndpointUrl, serviceName, transportId
Constructor and Description |
---|
JaxWsServerFactoryBean() |
JaxWsServerFactoryBean(JaxWsServiceFactoryBean serviceFactory) |
Modifier and Type | Method and Description |
---|---|
void |
addHandlers(List<Handler> h) |
Server |
create() |
protected BindingInfo |
createBindingInfo() |
protected Invoker |
createInvoker() |
List<Handler> |
getHandlers() |
JaxWsServiceFactoryBean |
getJaxWsServiceFactory() |
protected void |
initializeAnnotationInterceptors(Endpoint ep,
Class<?>... cls)
Add annotated Interceptors and Features to the Endpoint
|
protected void |
injectResources(Object instance) |
void |
setBlockInjection(boolean b)
No injection or PostConstruct will be called if this is set to true.
|
void |
setBlockPostConstruct(boolean blockPostConstruct) |
void |
setHandlers(List<Handler> h) |
applyFeatures, detectTransportIdFromAddress, getBeanName, getInvoker, getSchemaLocations, getServer, getServiceBean, getServiceBeanClass, getWSDLEndpointFactory, getWsdlLocation, initializeServiceFactory, isStart, setInvoker, setSchemaLocations, setServiceBean, setStart, setWsdlLocation
createEndpoint, createEndpointInfo, createSoapBindingConfig, getServiceClass, getServiceFactory, getWsdlURL, setServiceClass, setServiceFactory, setWsdlURL
addToBeans, checkPrivateEndpoint, getAddress, getBindingConfig, getBindingFactory, getBindingId, getBus, getBus, getConduitSelector, getDataBinding, getDestinationFactory, getEndpointName, getFeatures, getProperties, getProperties, getPublishedEndpointUrl, getServiceName, getTransportId, initializeAnnotationInterceptors, initializeAnnotationInterceptors, setAddress, setBindingConfig, setBindingFactory, setBindingId, setBus, setConduitSelector, setDataBinding, setDestinationFactory, setEndpointName, setEndpointReference, setFeatures, setProperties, setPublishedEndpointUrl, setServiceName, setTransportId
getInFaultInterceptors, getInInterceptors, getOutFaultInterceptors, getOutInterceptors, setInFaultInterceptors, setInInterceptors, setOutFaultInterceptors, setOutInterceptors
public JaxWsServerFactoryBean()
public JaxWsServerFactoryBean(JaxWsServiceFactoryBean serviceFactory)
public JaxWsServiceFactoryBean getJaxWsServiceFactory()
protected void initializeAnnotationInterceptors(Endpoint ep, Class<?>... cls)
initializeAnnotationInterceptors
in class AbstractEndpointFactory
ep
- protected Invoker createInvoker()
createInvoker
in class ServerFactoryBean
protected BindingInfo createBindingInfo()
createBindingInfo
in class AbstractWSDLBasedEndpointFactory
public Server create()
create
in class ServerFactoryBean
protected void injectResources(Object instance)
instance
- public void setBlockPostConstruct(boolean blockPostConstruct)
blockPostConstruct
- @PostConstruct method will not be called
if this property is set to true - this may be necessary in cases
when the @PostConstruct method needs to be called at a later stage,
for example, when a higher level container does its own injection.public void setBlockInjection(boolean b)
b
- Apache CXF