public class SpringBeanAsService<T> extends Object implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
ServiceRegistry.
I.e. a Spring managed bean will be registered as service under the given serviceEndpointId in a ServiceRegistry.
<bean class="net.sf.jstuff.integration.serviceregistry.support.SpringBeanAsService">
<property name="serviceRegistry" ref="mySpringManagedServiceRegistry" />
<!-- if serviceEndpointId is not specified the fully qualified class name of the interface will be used -->
<property name="serviceEndpointId" value="com.example.MySpringManagedService" />
<property name="serviceInterface" value="com.example.MySpringManagedService" />
<property name="service" ref="mySpringManagedService" />
</bean>
| Constructor and Description |
|---|
SpringBeanAsService() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
destroy() |
void |
setService(T service) |
void |
setServiceInterface(Class<T> serviceInterface) |
void |
setServiceRegistry(ServiceRegistry serviceRegistry) |
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void destroy()
throws Exception
destroy in interface org.springframework.beans.factory.DisposableBeanExceptionpublic void setService(T service)
public void setServiceRegistry(ServiceRegistry serviceRegistry)
Copyright © 2010–2021 Vegard IT GmbH, Germany. All rights reserved.