|
Spring Integration | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.integration.handler.AbstractMessageProcessor
org.springframework.integration.handler.ExpressionEvaluatingMessageProcessor
public class ExpressionEvaluatingMessageProcessor
A MessageProcessor implementation that evaluates a SpEL expression
with the Message itself as the root object within the evaluation context.
| Constructor Summary | |
|---|---|
ExpressionEvaluatingMessageProcessor(String expression)
Create an ExpressionEvaluatingMessageProcessor for the given expression String. |
|
| Method Summary | |
|---|---|
Object |
processMessage(Message<?> message)
Processes the Message by evaluating the expression with that Message as the root object. |
void |
setBeanFactory(BeanFactory beanFactory)
Specify a BeanFactory in order to enable resolution via @beanName in the expression. |
void |
setExpectedType(Class<?> expectedType)
Set the result type expected from evaluation of the expression. |
| Methods inherited from class org.springframework.integration.handler.AbstractMessageProcessor |
|---|
evaluateExpression, getEvaluationContext, setConversionService |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExpressionEvaluatingMessageProcessor(String expression)
ExpressionEvaluatingMessageProcessor for the given expression String.
| Method Detail |
|---|
public void setExpectedType(Class<?> expectedType)
public void setBeanFactory(BeanFactory beanFactory)
@beanName in the expression.
setBeanFactory in interface BeanFactoryAwarepublic Object processMessage(Message<?> message)
processMessage in interface MessageProcessor
|
Spring Integration | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||