|
Spring Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.integration.context.IntegrationObjectSupport org.springframework.integration.endpoint.AbstractEndpoint org.springframework.integration.gateway.GatewayProxyFactoryBean
public class GatewayProxyFactoryBean
Generates a proxy for the provided service interface to enable interaction
with messaging components without application code being aware of them allowing
for POJO-style interaction.
This component is also aware of the ConversionService
set on the enclosing BeanFactory
under the name IntegrationContextUtils.INTEGRATION_CONVERSION_SERVICE_BEAN_NAME
to
perform type conversions when necessary (thanks to Jon Schneider's contribution and suggestion in INT-1230).
Field Summary |
---|
Fields inherited from class org.springframework.integration.context.IntegrationObjectSupport |
---|
logger |
Constructor Summary | |
---|---|
GatewayProxyFactoryBean()
Create a Factory whose service interface type can be configured by setter injection. |
|
GatewayProxyFactoryBean(Class<?> serviceInterface)
|
Method Summary | |
---|---|
protected void |
doStart()
Subclasses must implement this method with the start behavior. |
protected void |
doStop()
Subclasses must implement this method with the stop behavior. |
InboundMessageMapper<Throwable> |
getExceptionMapper()
|
Map<String,GatewayMethodDefinition> |
getMethodToChannelMap()
|
Object |
getObject()
|
Class<?> |
getObjectType()
|
Object |
invoke(org.aopalliance.intercept.MethodInvocation invocation)
|
boolean |
isSingleton()
|
protected void |
onInit()
Subclasses may implement this for initialization logic. |
void |
setBeanClassLoader(ClassLoader beanClassLoader)
|
void |
setDefaultReplyChannel(MessageChannel defaultReplyChannel)
Set the default reply channel. |
void |
setDefaultReplyTimeout(long defaultReplyTimeout)
Set the default timeout value for receiving reply messages. |
void |
setDefaultRequestChannel(MessageChannel defaultRequestChannel)
Set the default request channel. |
void |
setDefaultRequestTimeout(long defaultRequestTimeout)
Set the default timeout value for sending request messages. |
void |
setExceptionMapper(InboundMessageMapper<Throwable> exceptionMapper)
|
void |
setMethodToChannelMap(Map<String,GatewayMethodDefinition> methodToChannelMap)
|
void |
setServiceInterface(Class<?> serviceInterface)
Set the interface class that the generated proxy should implement. |
void |
setTypeConverter(TypeConverter typeConverter)
|
Methods inherited from class org.springframework.integration.endpoint.AbstractEndpoint |
---|
getPhase, isAutoStartup, isRunning, setAutoStartup, setPhase, setTaskScheduler, start, stop, stop |
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport |
---|
afterPropertiesSet, getBeanFactory, getChannelResolver, getComponentName, getComponentType, getConversionService, getTaskScheduler, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, toString, writeMessageHistory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GatewayProxyFactoryBean()
RequestReplyExchanger
, upon initialization.
public GatewayProxyFactoryBean(Class<?> serviceInterface)
Method Detail |
---|
public void setServiceInterface(Class<?> serviceInterface)
public void setDefaultRequestChannel(MessageChannel defaultRequestChannel)
defaultRequestChannel
- the channel to which request messages will
be sent if no request channel has been configured with an annotationpublic void setDefaultReplyChannel(MessageChannel defaultReplyChannel)
defaultReplyChannel
- the channel from which reply messages will be
received if no reply channel has been configured with an annotationpublic void setDefaultRequestTimeout(long defaultRequestTimeout)
defaultRequestTimeout
- the timeout value in millisecondspublic void setDefaultReplyTimeout(long defaultReplyTimeout)
defaultReplyTimeout
- the timeout value in millisecondspublic void setTypeConverter(TypeConverter typeConverter)
public void setBeanClassLoader(ClassLoader beanClassLoader)
setBeanClassLoader
in interface BeanClassLoaderAware
protected void onInit()
IntegrationObjectSupport
onInit
in class IntegrationObjectSupport
public Class<?> getObjectType()
getObjectType
in interface FactoryBean<Object>
public Object getObject() throws Exception
getObject
in interface FactoryBean<Object>
Exception
public boolean isSingleton()
isSingleton
in interface FactoryBean<Object>
public Object invoke(org.aopalliance.intercept.MethodInvocation invocation) throws Throwable
invoke
in interface org.aopalliance.intercept.MethodInterceptor
Throwable
protected void doStart()
AbstractEndpoint
AbstractEndpoint.lifecycleLock
.
doStart
in class AbstractEndpoint
protected void doStop()
AbstractEndpoint
AbstractEndpoint.lifecycleLock
.
doStop
in class AbstractEndpoint
public Map<String,GatewayMethodDefinition> getMethodToChannelMap()
public void setMethodToChannelMap(Map<String,GatewayMethodDefinition> methodToChannelMap)
public InboundMessageMapper<Throwable> getExceptionMapper()
public void setExceptionMapper(InboundMessageMapper<Throwable> exceptionMapper)
|
Spring Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |