Class JaxWsServerFactoryBean

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

public class JaxWsServerFactoryBean extends org.apache.cxf.frontend.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

    Fields
    Modifier and Type
    Field
    Description
    protected boolean
     
    protected List<jakarta.xml.ws.handler.Handler>
     

    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

    Constructors
    Constructor
    Description
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addHandlers(List<jakarta.xml.ws.handler.Handler> h)
     
    org.apache.cxf.endpoint.Server
     
    protected org.apache.cxf.service.model.BindingInfo
     
    protected org.apache.cxf.service.invoker.Invoker
     
    List<jakarta.xml.ws.handler.Handler>
     
     
    protected void
    initializeAnnotationInterceptors(org.apache.cxf.endpoint.Endpoint ep, Class<?>... cls)
    Add annotated Interceptors and Features to the Endpoint
    protected void
     
    void
    setBlockInjection(boolean b)
    No injection or PostConstruct will be called if this is set to true.
    void
    setBlockPostConstruct(boolean blockPostConstruct)
     
    void
    setHandlers(List<jakarta.xml.ws.handler.Handler> h)
     

    Methods inherited from class org.apache.cxf.frontend.ServerFactoryBean

    applyFeatures, detectTransportIdFromAddress, getBeanName, getInvoker, getSchemaLocations, getServer, getServiceBean, getServiceBeanClass, getWSDLEndpointFactory, getWsdlLocation, initializeServiceFactory, isStart, setInvoker, setSchemaLocations, 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

    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

    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 Details

    • doInit

      protected boolean doInit
    • handlers

      protected List<jakarta.xml.ws.handler.Handler> handlers
  • Constructor Details

    • JaxWsServerFactoryBean

      public JaxWsServerFactoryBean()
    • JaxWsServerFactoryBean

      public JaxWsServerFactoryBean(JaxWsServiceFactoryBean serviceFactory)
  • Method Details

    • getJaxWsServiceFactory

      public JaxWsServiceFactoryBean getJaxWsServiceFactory()
    • setHandlers

      public void setHandlers(List<jakarta.xml.ws.handler.Handler> h)
    • addHandlers

      public void addHandlers(List<jakarta.xml.ws.handler.Handler> h)
    • getHandlers

      public List<jakarta.xml.ws.handler.Handler> getHandlers()
    • initializeAnnotationInterceptors

      protected void initializeAnnotationInterceptors(org.apache.cxf.endpoint.Endpoint ep, Class<?>... cls)
      Add annotated Interceptors and Features to the Endpoint
      Overrides:
      initializeAnnotationInterceptors in class org.apache.cxf.endpoint.AbstractEndpointFactory
      Parameters:
      ep -
    • createInvoker

      protected org.apache.cxf.service.invoker.Invoker createInvoker()
      Overrides:
      createInvoker in class org.apache.cxf.frontend.ServerFactoryBean
    • createBindingInfo

      protected org.apache.cxf.service.model.BindingInfo createBindingInfo()
      Overrides:
      createBindingInfo in class org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory
    • create

      public org.apache.cxf.endpoint.Server create()
      Overrides:
      create in class org.apache.cxf.frontend.ServerFactoryBean
    • injectResources

      protected void injectResources(Object instance)
      Parameters:
      instance -
    • setBlockPostConstruct

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