public class ServiceEndpointFactoryBean
extends org.springframework.context.support.ApplicationObjectSupport
implements org.springframework.beans.factory.FactoryBean
| Constructor and Description |
|---|
ServiceEndpointFactoryBean(Class serviceInterface) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addInterceptor(Object interceptor)
Adds an interceptor to this list in order.
|
String |
getDefaultImplementationBeanName()
The bean name to use to look up the implementation bean if it hasn't been explicitly set.
|
Class |
getDefaultImplementationClass()
The class to use if no other implementations are provided.
|
Object |
getObject() |
Class |
getObjectType() |
Object |
getServiceImplementationBean()
The implementation bean.
|
Class |
getServiceInterface()
The service interface.
|
protected void |
initApplicationContext(org.springframework.context.ApplicationContext context) |
boolean |
isSingleton() |
void |
setDefaultImplementationBeanName(String defaultImplementationBeanName)
The bean name to use to look up the implementation bean if it hasn't been explicitly set.
|
void |
setDefaultImplementationClass(Class defaultImplementationClass)
The class to use if no other implementations are provided.
|
void |
setInterceptors(List<Object> interceptors)
Ordered list of interceptors to inject on all service beans.
|
void |
setServiceImplementationBean(Object serviceImplementationBean)
The implementation bean.
|
Object |
wrapEndpoint(Class iface,
Object endpointImpl)
Wraps a specific endpoint bean with the necessary interceptors.
|
public ServiceEndpointFactoryBean(Class serviceInterface)
protected void initApplicationContext(org.springframework.context.ApplicationContext context)
throws org.springframework.beans.BeansException
initApplicationContext in class org.springframework.context.support.ApplicationObjectSupportorg.springframework.beans.BeansExceptionpublic void setInterceptors(List<Object> interceptors)
interceptors - The list of interceptors.protected void addInterceptor(Object interceptor)
interceptor - The interceptor to add to the list in order.public Object getObject() throws Exception
getObject in interface org.springframework.beans.factory.FactoryBeanExceptionpublic Class getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBeanpublic boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBeanpublic Object wrapEndpoint(Class iface, Object endpointImpl) throws Exception
iface - The interface.endpointImpl - The implementation.Exceptionpublic Class getServiceInterface()
public Object getServiceImplementationBean()
public void setServiceImplementationBean(Object serviceImplementationBean)
serviceImplementationBean - The implementation bean.public String getDefaultImplementationBeanName()
public void setDefaultImplementationBeanName(String defaultImplementationBeanName)
defaultImplementationBeanName - The bean name to use to look up the implementation bean if it hasn't been explicitly set.public Class getDefaultImplementationClass()
public void setDefaultImplementationClass(Class defaultImplementationClass)
defaultImplementationClass - The class to use if no other implementations are provided.Copyright © 2015. All rights reserved.