public class JpaOutboundGateway
extends org.springframework.integration.handler.AbstractReplyProducingMessageHandler
OutboundGatewayType
, the outbound gateway
will use either the JpaExecutor
's poll method or its
executeOutboundJpaOperation method.
In order to initialize the adapter, you must provide a JpaExecutor
as
constructor.Constructor and Description |
---|
JpaOutboundGateway(JpaExecutor jpaExecutor)
Constructor taking an
JpaExecutor that wraps all JPA Operations. |
Modifier and Type | Method and Description |
---|---|
protected void |
doInit() |
java.lang.String |
getComponentType() |
protected java.lang.Object |
handleRequestMessage(org.springframework.messaging.Message<?> requestMessage) |
void |
setGatewayType(OutboundGatewayType gatewayType) |
void |
setProducesReply(boolean producesReply)
If set to 'false', this component will act as an Outbound Channel Adapter.
|
doInvokeAdvisedRequestHandler, handleMessageInternal, hasAdviceChain, onInit, produceReply, setAdviceChain, setBeanClassLoader, setChannelResolver, setRequiresReply, shouldCopyRequestHeaders
getOutputChannel, setOutputChannel, setOutputChannelName, setSendTimeout
getOrder, handleMessage, setOrder, setShouldTrack
afterPropertiesSet, getApplicationContext, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, setMessageBuilderFactory, setTaskScheduler, toString
public JpaOutboundGateway(JpaExecutor jpaExecutor)
JpaExecutor
that wraps all JPA Operations.jpaExecutor
- Must not be nullpublic java.lang.String getComponentType()
getComponentType
in interface org.springframework.integration.support.context.NamedComponent
getComponentType
in class org.springframework.integration.handler.AbstractMessageHandler
protected void doInit()
doInit
in class org.springframework.integration.handler.AbstractReplyProducingMessageHandler
protected java.lang.Object handleRequestMessage(org.springframework.messaging.Message<?> requestMessage)
handleRequestMessage
in class org.springframework.integration.handler.AbstractReplyProducingMessageHandler
public void setGatewayType(OutboundGatewayType gatewayType)
gatewayType
- The gateway type.public void setProducesReply(boolean producesReply)
producesReply
- Defaults to 'true'.