public abstract class ExpressionMessageProducerSupport extends MessageProducerSupport
MessageProducerSupport
sub-class that provides payloadExpression
evaluation with result as a payload for Message to send.lifecycleCondition, lifecycleLock
EXPRESSION_PARSER, logger
DEFAULT_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, getIntegrationPatternType, getMessagingTemplate, getOutputChannel, sendErrorMessageIfNecessary, sendMessage, setErrorChannel, setErrorChannelName, setErrorMessageStrategy, setOutputChannel, setOutputChannelName, setSendTimeout, setShouldTrack, subscribeToPublisher
destroy, doStop, getPhase, getRole, isAutoStartup, isRunning, setAutoStartup, setPhase, setRole, start, stop, stop
afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getComponentType, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBeanName, getComponentName, getComponentType
public 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()
IntegrationObjectSupport
onInit
in class MessageProducerSupport