public abstract class ExpressionMessageProducerSupport extends MessageProducerSupport
MessageProducerSupport sub-class that provides payloadExpression
evaluation with result as a payload for Message to send.lifecycleCondition, lifecycleLockEXPRESSION_PARSER, logger| Constructor and Description |
|---|
ExpressionMessageProducerSupport() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
evaluatePayloadExpression(java.lang.Object payload) |
protected void |
onInit()
Subclasses may implement this for initialization logic.
|
void |
setIntegrationEvaluationContext(org.springframework.expression.EvaluationContext evaluationContext) |
void |
setPayloadExpression(org.springframework.expression.Expression payloadExpression) |
void |
setPayloadExpressionString(java.lang.String payloadExpression) |
afterSingletonsInstantiated, buildErrorMessage, doStart, doStop, getErrorChannel, getErrorMessageAttributes, getMessagingTemplate, getOutputChannel, sendErrorMessageIfNecessary, sendMessage, setErrorChannel, setErrorChannelName, setErrorMessageStrategy, setOutputChannel, setOutputChannelName, setSendTimeout, setShouldTrackdestroy, doStop, getPhase, getRole, isAutoStartup, isRunning, setAutoStartup, setPhase, setRole, setTaskScheduler, start, stop, stopafterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanFactory, getChannelResolver, getComponentName, getComponentType, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetComponentName, getComponentTypepublic void setPayloadExpression(org.springframework.expression.Expression payloadExpression)
payloadExpression - the expression to use.public void setPayloadExpressionString(java.lang.String payloadExpression)
payloadExpression - the String in SpEL syntax.public void setIntegrationEvaluationContext(org.springframework.expression.EvaluationContext evaluationContext)
protected void onInit()
IntegrationObjectSupportonInit in class MessageProducerSupportprotected java.lang.Object evaluatePayloadExpression(java.lang.Object payload)