|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.language.bean.BeanExpression
public class BeanExpression
Evaluates an expression using a bean method invocation
Constructor Summary | |
---|---|
BeanExpression(Object bean,
String method)
|
|
BeanExpression(String beanName,
String method)
|
Method Summary | ||
---|---|---|
protected String |
assertionFailureMessage(Exchange exchange)
|
|
void |
assertMatches(String text,
Exchange exchange)
|
|
Object |
evaluate(Exchange exchange)
Returns the value of the expression on the given exchange |
|
|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BeanExpression(Object bean, String method)
public BeanExpression(String beanName, String method)
Method Detail |
---|
public String toString()
toString
in class Object
protected String assertionFailureMessage(Exchange exchange)
public Object evaluate(Exchange exchange)
Expression
evaluate
in interface Expression
exchange
- the message exchange on which to evaluate the expression
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 result
public boolean matches(Exchange exchange)
Predicate
matches
in interface Predicate
exchange
- the message exchange
public void assertMatches(String text, Exchange exchange) throws AssertionError
AssertionError
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |