public class BeanExpression extends Object implements Expression, Predicate
Constructor and Description |
---|
BeanExpression(BeanHolder beanHolder,
String method) |
BeanExpression(Class<?> type,
String method) |
BeanExpression(Object bean,
String method) |
BeanExpression(String beanName,
String method) |
Modifier and Type | Method and Description |
---|---|
Object |
evaluate(Exchange exchange) |
<T> T |
evaluate(Exchange exchange,
Class<T> type)
Returns the value of the expression on the given exchange
|
boolean |
matches(Exchange exchange)
Evaluates the predicate on the message exchange and returns true if this
exchange matches the predicate
|
String |
toString() |
public BeanExpression(Object bean, String method)
public BeanExpression(String beanName, String method)
public BeanExpression(Class<?> type, String method)
public BeanExpression(BeanHolder beanHolder, String method)
public <T> T evaluate(Exchange exchange, Class<T> type)
Expression
evaluate
in interface Expression
exchange
- the message exchange on which to evaluate the expressiontype
- the expected type of the evaluation resultApache Camel