|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.remoting.jaxws.AbstractJaxWsServiceExporter
public abstract class AbstractJaxWsServiceExporter
Abstract exporter for JAX-WS services, autodetecting annotated service beans
(through the JAX-WS WebService
annotation). Subclasses
need to implement the publishEndpoint(javax.xml.ws.Endpoint, javax.jws.WebService)
template method for actual
endpoint exposure.
WebService
,
Endpoint
,
SimpleJaxWsServiceExporter
,
SimpleHttpServerJaxWsServiceExporter
Constructor Summary | |
---|---|
AbstractJaxWsServiceExporter()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
Immediately publish all endpoints when fully configured. |
void |
destroy()
Stops all published endpoints, taking the web services offline. |
protected abstract void |
publishEndpoint(Endpoint endpoint,
WebService annotation)
Actually publish the given endpoint. |
protected abstract void |
publishEndpoint(Endpoint endpoint,
WebServiceProvider annotation)
Actually publish the given provider endpoint. |
void |
publishEndpoints()
Publish all WebService annotated beans in the
containing BeanFactory. |
void |
setBeanFactory(BeanFactory beanFactory)
Obtains all web service beans and publishes them as JAX-WS endpoints. |
void |
setEndpointProperties(Map<String,Object> 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractJaxWsServiceExporter()
Method Detail |
---|
public void setEndpointProperties(Map<String,Object> endpointProperties)
Endpoint.setProperties(java.util.Map)
,
Endpoint.WSDL_SERVICE
,
Endpoint.WSDL_PORT
public void setExecutor(Executor executor)
Endpoint.setExecutor(java.util.concurrent.Executor)
public void setBeanFactory(BeanFactory beanFactory)
setBeanFactory
in interface BeanFactoryAware
beanFactory
- owning BeanFactory (never null
).
The bean can immediately call methods on the factory.BeanInitializationException
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
- in the event of misconfiguration (such
as failure to set an essential property) or if initialization fails.publishEndpoints()
public void publishEndpoints()
WebService
annotated beans in the
containing BeanFactory.
publishEndpoint(javax.xml.ws.Endpoint, javax.jws.WebService)
protected abstract void publishEndpoint(Endpoint endpoint, WebService annotation)
endpoint
- the JAX-WS Endpoint objectannotation
- the service bean's WebService annotationprotected abstract void publishEndpoint(Endpoint endpoint, WebServiceProvider annotation)
endpoint
- the JAX-WS Provider Endpoint objectannotation
- the service bean's WebServiceProvider annotationpublic void destroy()
destroy
in interface DisposableBean
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |