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. Example:

 JaxWsServerFactoryBean sf = JaxWsServerFactoryBean();
 sf.setServiceClass(MyService.class);
 sf.setAddress("http://acme.com/myService");
 sf.create();
 
This will start a server for you and register it with the ServerManager.


Field Summary
protected  boolean doInit
           
protected  java.util.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(java.util.List<javax.xml.ws.handler.Handler> h)
           
 Server create()
           
protected  BindingInfo createBindingInfo()
           
protected  Invoker createInvoker()
           
 java.util.List<javax.xml.ws.handler.Handler> getHandlers()
           
protected  void initializeAnnotationInterceptors(Endpoint ep, java.lang.Class<?> cls)
          Add annotationed Interceptors and Features to the Endpoint
protected  void injectResources(java.lang.Object instance)
           
 void setHandlers(java.util.List<javax.xml.ws.handler.Handler> h)
           
 
Methods inherited from class org.apache.cxf.frontend.ServerFactoryBean
applyExtraClass, applyFeatures, getBeanName, getInvoker, getSchemaLocations, getServer, getServiceBean, getServiceBeanClass, getWsdlLocation, initializeServiceFactory, isStart, setInvoker, setSchemaLocations, setServer, setServiceBean, setStart, setWsdlLocation
 
Methods inherited from class org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory
createEndpoint, createEndpointInfo, createSoapBindingConfig, getServiceClass, getServiceFactory, getWsdlURL, initializeAnnotationInterceptors, setServiceClass, setServiceFactory, setWsdlURL
 
Methods inherited from class org.apache.cxf.endpoint.AbstractEndpointFactory
getAddress, getBindingConfig, getBindingFactory, getBindingId, getBus, getConduitSelector, getDataBinding, getDestinationFactory, getEndpointName, getFeatures, getProperties, getPublishedEndpointUrl, getServiceName, getTransportId, 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 java.util.List<javax.xml.ws.handler.Handler> handlers
Constructor Detail

JaxWsServerFactoryBean

public JaxWsServerFactoryBean()

JaxWsServerFactoryBean

public JaxWsServerFactoryBean(JaxWsServiceFactoryBean serviceFactory)
Method Detail

setHandlers

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

addHandlers

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

getHandlers

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

initializeAnnotationInterceptors

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

Overrides:
initializeAnnotationInterceptors in class AbstractWSDLBasedEndpointFactory
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(java.lang.Object instance)
Parameters:
instance -


Apache CXF