public abstract class

AbstractJaxWsServiceExporter

extends Object
implements BeanFactoryAware DisposableBean InitializingBean
java.lang.Object
   ↳ org.springframework.remoting.jaxws.AbstractJaxWsServiceExporter
Known Direct Subclasses

Class Overview

Abstract exporter for JAX-WS services, autodetecting annotated service beans (through the JAX-WS javax.jws.WebService annotation). Compatible with JAX-WS 2.0, 2.1 and 2.2.

Subclasses need to implement the publishEndpoint(Endpoint, WebService) template methods for actual endpoint exposure.

See Also

Summary

Public Constructors
AbstractJaxWsServiceExporter()
Public Methods
void afterPropertiesSet()
Immediately publish all endpoints when fully configured.
void destroy()
Stops all published endpoints, taking the web services offline.
void publishEndpoints()
Publish all javax.jws.WebService annotated beans in the containing BeanFactory.
void setBeanFactory(BeanFactory beanFactory)
Obtains all web service beans and publishes them as JAX-WS endpoints.
void setBindingType(String bindingType)
Specify the binding type to use, overriding the value of the JAX-WS javax.xml.ws.BindingType annotation.
void setEndpointProperties(Map<StringObject> endpointProperties)
Set the property bag for the endpoint, including properties such as "javax.xml.ws.wsdl.service" or "javax.xml.ws.wsdl.port".
void setExecutor(Executor executor)
Set the JDK concurrent executor to use for dispatching incoming requests to exported service instances.
void setWebServiceFeatures(Object[] webServiceFeatures)
Allows for providing JAX-WS 2.2 WebServiceFeature specifications: in the form of actual javax.xml.ws.WebServiceFeature objects, WebServiceFeature Class references, or WebServiceFeature class names.
Protected Methods
Endpoint createEndpoint(Object bean)
Create the actual Endpoint instance.
abstract void publishEndpoint(Endpoint endpoint, WebServiceProvider annotation)
Actually publish the given provider endpoint.
abstract void publishEndpoint(Endpoint endpoint, WebService annotation)
Actually publish the given endpoint.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.beans.factory.BeanFactoryAware
From interface org.springframework.beans.factory.DisposableBean
From interface org.springframework.beans.factory.InitializingBean

Public Constructors

public AbstractJaxWsServiceExporter ()

Public Methods

public void afterPropertiesSet ()

Immediately publish all endpoints when fully configured.

Throws
Exception

public void destroy ()

Stops all published endpoints, taking the web services offline.

public void publishEndpoints ()

Publish all javax.jws.WebService annotated beans in the containing BeanFactory.

public void setBeanFactory (BeanFactory beanFactory)

Obtains all web service beans and publishes them as JAX-WS endpoints.

Parameters
beanFactory owning BeanFactory (never null). The bean can immediately call methods on the factory.

public void setBindingType (String bindingType)

Specify the binding type to use, overriding the value of the JAX-WS javax.xml.ws.BindingType annotation.

public void setEndpointProperties (Map<StringObject> endpointProperties)

Set the property bag for the endpoint, including properties such as "javax.xml.ws.wsdl.service" or "javax.xml.ws.wsdl.port".

public void setExecutor (Executor executor)

Set the JDK concurrent executor to use for dispatching incoming requests to exported service instances.

public void setWebServiceFeatures (Object[] webServiceFeatures)

Allows for providing JAX-WS 2.2 WebServiceFeature specifications: in the form of actual javax.xml.ws.WebServiceFeature objects, WebServiceFeature Class references, or WebServiceFeature class names.

Protected Methods

protected Endpoint createEndpoint (Object bean)

Create the actual Endpoint instance.

Parameters
bean the service object to wrap
Returns
  • the Endpoint instance

protected abstract void publishEndpoint (Endpoint endpoint, WebServiceProvider annotation)

Actually publish the given provider endpoint. To be implemented by subclasses.

Parameters
endpoint the JAX-WS Provider Endpoint object
annotation the service bean's WebServiceProvider annotation

protected abstract void publishEndpoint (Endpoint endpoint, WebService annotation)

Actually publish the given endpoint. To be implemented by subclasses.

Parameters
endpoint the JAX-WS Endpoint object
annotation the service bean's WebService annotation