Spring Integration

org.springframework.integration.jpa.outbound
Class JpaOutboundGatewayFactoryBean

java.lang.Object
  extended by org.springframework.beans.factory.config.AbstractFactoryBean<MessageHandler>
      extended by 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

Field Summary
 
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
logger
 
Constructor Summary
JpaOutboundGatewayFactoryBean(JpaExecutor jpaExecutor)
          Constructor taking an JpaExecutor that wraps all JPA Operations.
 
Method Summary
protected  MessageHandler createInstance()
           
 java.lang.Class<?> getObjectType()
           
 void setAdviceChain(java.util.List<org.aopalliance.aop.Advice> adviceChain)
           
 void setGatewayType(OutboundGatewayType gatewayType)
           
 void setOrder(int order)
           
 void setOutputChannel(MessageChannel outputChannel)
           
 void setProducesReply(boolean producesReply)
           
 void setReplyTimeout(long replyTimeout)
          Specifies the time the gateway will wait to send the result to the reply channel.
 void setTxAdviceChain(java.util.List<org.aopalliance.aop.Advice> txAdviceChain)
           
 
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
 

Constructor Detail

JpaOutboundGatewayFactoryBean

public JpaOutboundGatewayFactoryBean(JpaExecutor jpaExecutor)
Constructor taking an JpaExecutor that wraps all JPA Operations.

Parameters:
jpaExecutor - Must not be null
Method Detail

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>

Spring Integration