Apache CXF API

org.apache.cxf.jaxws
Class JaxWsServerFactoryBean

java.lang.Object
  extended by org.apache.cxf.interceptor.AbstractBasicInterceptorProvider
      extended by org.apache.cxf.endpoint.AbstractEndpointFactory
          extended by org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory
              extended by org.apache.cxf.frontend.ServerFactoryBean
                  extended by org.apache.cxf.jaxws.JaxWsServerFactoryBean
All Implemented Interfaces:
InterceptorProvider
Direct Known Subclasses:
NamespaceHandler.SpringServerFactoryBean

public class JaxWsServerFactoryBean
extends ServerFactoryBean

Bean to help easily create Server endpoints for JAX-WS.

 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.


Field Summary
protected  boolean doInit
           
protected  List<javax.xml.ws.handler.Handler> handlers
           
 
Fields inherited from class org.apache.cxf.endpoint.AbstractEndpointFactory
address, bindingConfig, bindingFactory, bindingId, bus, conduitSelector, dataBinding, destinationFactory, endpointName, endpointReference, features, properties, publishedEndpointUrl, serviceName, transportId
 
Constructor Summary
JaxWsServerFactoryBean()
           
JaxWsServerFactoryBean(JaxWsServiceFactoryBean serviceFactory)
           
 
Method Summary
 void addHandlers(List<javax.xml.ws.handler.Handler> h)
           
 Server create()
           
protected  BindingInfo createBindingInfo()
           
protected  Invoker createInvoker()
           
 List<javax.xml.ws.handler.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<javax.xml.ws.handler.Handler> h)
           
 
Methods inherited from class org.apache.cxf.frontend.ServerFactoryBean
applyFeatures, destroy, detectTransportIdFromAddress, getBeanName, getInvoker, getSchemaLocations, getServer, getServiceBean, getServiceBeanClass, getWSDLEndpointFactory, getWsdlLocation, init, initializeServiceFactory, isStart, setInvoker, setSchemaLocations, setServer, setServiceBean, setStart, setWsdlLocation
 
Methods inherited from class org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory
createEndpoint, createEndpointInfo, createSoapBindingConfig, getServiceClass, getServiceFactory, getWsdlURL, setServiceClass, setServiceFactory, setWsdlURL
 
Methods inherited from class org.apache.cxf.endpoint.AbstractEndpointFactory
checkPrivateEndpoint, getAddress, getBindingConfig, getBindingFactory, getBindingId, 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
 
Methods inherited from class org.apache.cxf.interceptor.AbstractBasicInterceptorProvider
getInFaultInterceptors, getInInterceptors, getOutFaultInterceptors, getOutInterceptors, setInFaultInterceptors, setInInterceptors, setOutFaultInterceptors, setOutInterceptors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

doInit

protected boolean doInit

handlers

protected List<javax.xml.ws.handler.Handler> handlers
Constructor Detail

JaxWsServerFactoryBean

public JaxWsServerFactoryBean()

JaxWsServerFactoryBean

public JaxWsServerFactoryBean(JaxWsServiceFactoryBean serviceFactory)
Method Detail

getJaxWsServiceFactory

public JaxWsServiceFactoryBean getJaxWsServiceFactory()

setHandlers

public void setHandlers(List<javax.xml.ws.handler.Handler> h)

addHandlers

public void addHandlers(List<javax.xml.ws.handler.Handler> h)

getHandlers

public List<javax.xml.ws.handler.Handler> getHandlers()

initializeAnnotationInterceptors

protected void initializeAnnotationInterceptors(Endpoint ep,
                                                Class<?>... cls)
Add annotated Interceptors and Features to the Endpoint

Overrides:
initializeAnnotationInterceptors in class AbstractEndpointFactory
Parameters:
ep -

createInvoker

protected Invoker createInvoker()
Overrides:
createInvoker in class ServerFactoryBean

createBindingInfo

protected BindingInfo createBindingInfo()
Overrides:
createBindingInfo in class AbstractWSDLBasedEndpointFactory

create

public Server create()
Overrides:
create in class ServerFactoryBean

injectResources

protected void injectResources(Object instance)
Parameters:
instance -

setBlockPostConstruct

public void setBlockPostConstruct(boolean blockPostConstruct)
Parameters:
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.

setBlockInjection

public void setBlockInjection(boolean b)
No injection or PostConstruct will be called if this is set to true. If the container has already handled the injection, this should be set to true.

Parameters:
b -

Apache CXF API

Apache CXF