Class 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 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(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 -
    • 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 -