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, loggerDEFAULT_PHASE| 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 |
setIntegrationEvaluationContext(EvaluationContext evaluationContext) |
void |
setPayloadExpression(Expression payloadExpression) |
void |
setPayloadExpressionString(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, start, stop, stopafterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getComponentType, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBeanName, getComponentName, getComponentTypepublic void setPayloadExpression(Expression payloadExpression)
payloadExpression - the expression to use.public void setPayloadExpressionString(String payloadExpression)
payloadExpression - the String in SpEL syntax.public void setIntegrationEvaluationContext(EvaluationContext evaluationContext)
protected void onInit()
IntegrationObjectSupportonInit in class MessageProducerSupport