public class ExpressionCommandMessageProcessor extends AbstractMessageProcessor<Object> implements IntegrationPattern
EXPRESSION_PARSER, logger
Constructor and Description |
---|
ExpressionCommandMessageProcessor() |
ExpressionCommandMessageProcessor(MethodFilter methodFilter) |
ExpressionCommandMessageProcessor(MethodFilter methodFilter,
BeanFactory beanFactory) |
Modifier and Type | Method and Description |
---|---|
IntegrationPatternType |
getIntegrationPatternType()
Return a pattern type this component implements.
|
Object |
processMessage(Message<?> message)
Evaluates the Message payload expression as a command.
|
void |
setBeanFactory(BeanFactory beanFactory)
Specify a BeanFactory in order to enable resolution via
@beanName in the expression. |
afterPropertiesSet, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getBeanFactory, getEvaluationContext, getEvaluationContext, getMessageBuilderFactory, onInit, setConversionService
public ExpressionCommandMessageProcessor()
public ExpressionCommandMessageProcessor(@Nullable MethodFilter methodFilter)
public ExpressionCommandMessageProcessor(@Nullable MethodFilter methodFilter, @Nullable BeanFactory beanFactory)
public final void setBeanFactory(BeanFactory beanFactory)
AbstractExpressionEvaluator
@beanName
in the expression.setBeanFactory
in interface BeanFactoryAware
setBeanFactory
in class AbstractExpressionEvaluator
public IntegrationPatternType getIntegrationPatternType()
IntegrationPattern
getIntegrationPatternType
in interface IntegrationPattern
IntegrationPatternType
this component implements.@Nullable public Object processMessage(Message<?> message)
processMessage
in interface MessageProcessor<Object>
processMessage
in class AbstractMessageProcessor<Object>
message
- The message to process.IllegalArgumentException
- if the payload is not an Exception or String