org.springframework.integration.jpa.outbound
Class JpaOutboundGatewayFactoryBean
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<MessageHandler>
org.springframework.integration.jpa.outbound.JpaOutboundGatewayFactoryBean
- All Implemented Interfaces:
- org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<MessageHandler>, org.springframework.beans.factory.InitializingBean
public class JpaOutboundGatewayFactoryBean
- extends org.springframework.beans.factory.config.AbstractFactoryBean<MessageHandler>
The JpaOutboundGatewayFactoryBean
creates instances of the
JpaOutboundGateway
. Optionally this FactoryBean
will add Aop
Advices (e.g. TransactionInterceptor
to the JpaOutboundGateway
instance.
- Since:
- 2.2
- Author:
- Amol Nayak, Gunnar Hillert, Gary Russell
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean |
logger |
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean |
afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JpaOutboundGatewayFactoryBean
public JpaOutboundGatewayFactoryBean(JpaExecutor jpaExecutor)
- Constructor taking an
JpaExecutor
that wraps all JPA Operations.
- Parameters:
jpaExecutor
- Must not be null
setGatewayType
public void setGatewayType(OutboundGatewayType gatewayType)
setTxAdviceChain
public void setTxAdviceChain(java.util.List<org.aopalliance.aop.Advice> txAdviceChain)
setAdviceChain
public void setAdviceChain(java.util.List<org.aopalliance.aop.Advice> adviceChain)
setProducesReply
public void setProducesReply(boolean producesReply)
setOutputChannel
public void setOutputChannel(MessageChannel outputChannel)
setOrder
public void setOrder(int order)
setReplyTimeout
public void setReplyTimeout(long replyTimeout)
- Specifies the time the gateway will wait to send the result to the reply channel.
Only applies when the reply channel itself might block the send (for example a bounded QueueChannel that is currently full).
By default the Gateway will wait indefinitely.
- Parameters:
replyTimeout
- The timeout in milliseconds
getObjectType
public java.lang.Class<?> getObjectType()
- Specified by:
getObjectType
in interface org.springframework.beans.factory.FactoryBean<MessageHandler>
- Specified by:
getObjectType
in class org.springframework.beans.factory.config.AbstractFactoryBean<MessageHandler>
createInstance
protected MessageHandler createInstance()
- Specified by:
createInstance
in class org.springframework.beans.factory.config.AbstractFactoryBean<MessageHandler>