public class JpaOutboundGatewayFactoryBean extends AbstractFactoryBean<MessageHandler>
JpaOutboundGatewayFactoryBean
creates instances of the
JpaOutboundGateway
. Optionally this FactoryBean
will add Aop
Advices (e.g. TransactionInterceptor
to the JpaOutboundGateway
instance.logger
Constructor and Description |
---|
JpaOutboundGatewayFactoryBean(JpaExecutor jpaExecutor)
Constructor taking an
JpaExecutor that wraps all JPA Operations. |
Modifier and Type | Method and Description |
---|---|
protected MessageHandler |
createInstance() |
Class<?> |
getObjectType() |
void |
setAdviceChain(List<org.aopalliance.aop.Advice> adviceChain) |
void |
setComponentName(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(List<org.aopalliance.aop.Advice> txAdviceChain) |
afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
public JpaOutboundGatewayFactoryBean(JpaExecutor jpaExecutor)
JpaExecutor
that wraps all JPA Operations.jpaExecutor
- Must not be nullpublic void setGatewayType(OutboundGatewayType gatewayType)
public void setTxAdviceChain(List<org.aopalliance.aop.Advice> txAdviceChain)
public void setAdviceChain(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(String componentName)
componentName
- The component name.public Class<?> getObjectType()
getObjectType
in interface FactoryBean<MessageHandler>
getObjectType
in class AbstractFactoryBean<MessageHandler>
protected MessageHandler createInstance()
createInstance
in class AbstractFactoryBean<MessageHandler>