public abstract class ExpressionMessageProducerSupport extends MessageProducerSupport implements IntegrationEvaluationContextAware
MessageProducerSupport
sub-class that provides payloadExpression
evaluation with result as a payload for Message to send.lifecycleCondition, lifecycleLock
logger
Constructor and Description |
---|
ExpressionMessageProducerSupport() |
Modifier and Type | Method and Description |
---|---|
protected Object |
evaluatePayloadExpression(Object payload) |
protected void |
onInit()
Subclasses may implement this for initialization logic.
|
void |
setExpressionPayload(Expression payloadExpression)
Temporary, will be changed to
setPayloadExpression(java.lang.String) in a future release. |
void |
setIntegrationEvaluationContext(EvaluationContext evaluationContext) |
void |
setPayloadExpression(String payloadExpression)
Deprecated.
in favor of
setExpressionPayload(org.springframework.expression.Expression) . Will be changed in a future release
to use an Expression parameter. |
doStart, doStop, sendMessage, setErrorChannel, setOutputChannel, setSendTimeout, setShouldTrack
doStop, getPhase, isAutoStartup, isRunning, setAutoStartup, setPhase, setTaskScheduler, start, stop, stop
afterPropertiesSet, extractTypeIfPossible, getApplicationContext, getApplicationContextId, getBeanFactory, getChannelResolver, getComponentName, getComponentType, getConversionService, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getComponentName, getComponentType
@Deprecated public void setPayloadExpression(String payloadExpression)
setExpressionPayload(org.springframework.expression.Expression)
. Will be changed in a future release
to use an Expression
parameter.payloadExpression
- the expression to set.public void setExpressionPayload(Expression payloadExpression)
setPayloadExpression(java.lang.String)
in a future release.payloadExpression
- the expression to set.public void setIntegrationEvaluationContext(EvaluationContext evaluationContext)
setIntegrationEvaluationContext
in interface IntegrationEvaluationContextAware
protected void onInit()
IntegrationObjectSupport
onInit
in class MessageProducerSupport