org.apache.cxf.jaxws
Class JaxWsServerFactoryBean
java.lang.Object
org.apache.cxf.interceptor.AbstractBasicInterceptorProvider
org.apache.cxf.frontend.AbstractEndpointFactory
org.apache.cxf.frontend.ServerFactoryBean
org.apache.cxf.jaxws.JaxWsServerFactoryBean
- All Implemented Interfaces:
- InterceptorProvider
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
|
| Methods inherited from class org.apache.cxf.frontend.ServerFactoryBean |
applyExtraClass, applyFeatures, getBeanName, getInvoker, getSchemaLocations, getServer, getServiceBean, getServiceBeanClass, initializeServiceFactory, isStart, setInvoker, setSchemaLocations, setServer, setServiceBean, setStart |
| Methods inherited from class org.apache.cxf.frontend.AbstractEndpointFactory |
createEndpoint, createEndpointInfo, getAddress, getBindingConfig, getBindingFactory, getBindingId, getBus, getConduitSelector, getDataBinding, getDestinationFactory, getEndpointName, getFeatures, getProperties, getServiceClass, getServiceFactory, getServiceName, getTransportId, getWsdlURL, initializeAnnotationInterceptors, setAddress, setBindingConfig, setBindingId, setBus, setConduitSelector, setDataBinding, setDestinationFactory, setEndpointName, setEndpointReference, setFeatures, setProperties, setServiceClass, setServiceFactory, setServiceName, setTransportId, setWsdlURL |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
doInit
protected boolean doInit
JaxWsServerFactoryBean
public JaxWsServerFactoryBean()
JaxWsServerFactoryBean
public JaxWsServerFactoryBean(JaxWsServiceFactoryBean serviceFactory)
initializeAnnotationInterceptors
protected void initializeAnnotationInterceptors(Endpoint ep,
java.lang.Class<?> cls)
- Add annotationed 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 AbstractEndpointFactory
create
public Server create()
- Overrides:
create in class ServerFactoryBean
injectResources
protected void injectResources(java.lang.Object instance)
- Parameters:
instance -
Apache CXF is an effort undergoing incubation at the Apache Software Foundation(ASF) and sponsored by the Apache Incubator PMC.