public class JaxWsServerFactoryBean
extends org.apache.cxf.frontend.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 |
Constructor and Description |
---|
JaxWsServerFactoryBean() |
JaxWsServerFactoryBean(JaxWsServiceFactoryBean serviceFactory) |
Modifier and Type | Method and Description |
---|---|
void |
addHandlers(List<Handler> h) |
org.apache.cxf.endpoint.Server |
create() |
protected org.apache.cxf.service.model.BindingInfo |
createBindingInfo() |
protected org.apache.cxf.service.invoker.Invoker |
createInvoker() |
List<Handler> |
getHandlers() |
JaxWsServiceFactoryBean |
getJaxWsServiceFactory() |
protected void |
initializeAnnotationInterceptors(org.apache.cxf.endpoint.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
public JaxWsServerFactoryBean()
public JaxWsServerFactoryBean(JaxWsServiceFactoryBean serviceFactory)
public JaxWsServiceFactoryBean getJaxWsServiceFactory()
protected void initializeAnnotationInterceptors(org.apache.cxf.endpoint.Endpoint ep, Class<?>... cls)
initializeAnnotationInterceptors
in class org.apache.cxf.endpoint.AbstractEndpointFactory
ep
- protected org.apache.cxf.service.invoker.Invoker createInvoker()
createInvoker
in class org.apache.cxf.frontend.ServerFactoryBean
protected org.apache.cxf.service.model.BindingInfo createBindingInfo()
createBindingInfo
in class org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory
public org.apache.cxf.endpoint.Server create()
create
in class org.apache.cxf.frontend.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