|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.impl.ExpressionSupport
org.apache.camel.impl.ExpressionAdapter
public abstract class ExpressionAdapter
A helper class for developers wishing to implement an Expression
using Java code with a minimum amount of code to write so that the developer only needs
to implement one of the evaluate(org.apache.camel.Exchange, Class)
or
ExpressionSupport.evaluate(org.apache.camel.Exchange)
methods.
Constructor Summary | |
---|---|
ExpressionAdapter()
|
Method Summary | ||
---|---|---|
protected java.lang.String |
assertionFailureMessage(Exchange exchange)
|
|
|
evaluate(Exchange exchange,
java.lang.Class<T> type)
Returns the value of the expression on the given exchange |
Methods inherited from class org.apache.camel.impl.ExpressionSupport |
---|
assertMatches, evaluate, matches |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExpressionAdapter()
Method Detail |
---|
protected java.lang.String assertionFailureMessage(Exchange exchange)
assertionFailureMessage
in class ExpressionSupport
public <T> T evaluate(Exchange exchange, java.lang.Class<T> type)
Expression
exchange
- the message exchange on which to evaluate the expressiontype
- the expected type of the evaluation result
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |