public class JpaOutboundGatewayFactoryBean extends org.springframework.beans.factory.config.AbstractFactoryBean<MessageHandler>
JpaOutboundGatewayFactoryBean
creates instances of the
JpaOutboundGateway
. Optionally this FactoryBean
will add Aop
Advices (e.g. TransactionInterceptor
to the JpaOutboundGateway
instance.Constructor and Description |
---|
JpaOutboundGatewayFactoryBean(JpaExecutor jpaExecutor)
Constructor taking an
JpaExecutor that wraps all JPA Operations. |
Modifier and Type | Method and Description |
---|---|
protected MessageHandler |
createInstance() |
java.lang.Class<?> |
getObjectType() |
void |
setAdviceChain(java.util.List<org.aopalliance.aop.Advice> adviceChain) |
void |
setComponentName(java.lang.String componentName)
Sets the name of the handler component.
|
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 |
setRequiresReply(boolean requiresReply) |
void |
setTxAdviceChain(java.util.List<org.aopalliance.aop.Advice> txAdviceChain) |
public JpaOutboundGatewayFactoryBean(JpaExecutor jpaExecutor)
JpaExecutor
that wraps all JPA Operations.jpaExecutor
- Must not be nullpublic void setGatewayType(OutboundGatewayType gatewayType)
public void setTxAdviceChain(java.util.List<org.aopalliance.aop.Advice> txAdviceChain)
public void setAdviceChain(java.util.List<org.aopalliance.aop.Advice> adviceChain)
public void setProducesReply(boolean producesReply)
public void setOutputChannel(MessageChannel outputChannel)
public void setOrder(int order)
public void setReplyTimeout(long replyTimeout)
replyTimeout
- The timeout in millisecondspublic void setRequiresReply(boolean requiresReply)
public void setComponentName(java.lang.String componentName)
componentName
- public java.lang.Class<?> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<MessageHandler>
getObjectType
in class org.springframework.beans.factory.config.AbstractFactoryBean<MessageHandler>
protected MessageHandler createInstance()
createInstance
in class org.springframework.beans.factory.config.AbstractFactoryBean<MessageHandler>