Package org.apache.camel.support
Class ExpressionAdapter
- java.lang.Object
-
- org.apache.camel.support.ExpressionSupport
-
- org.apache.camel.support.ExpressionAdapter
-
- All Implemented Interfaces:
org.apache.camel.Expression
,org.apache.camel.Predicate
- Direct Known Subclasses:
ConstantExpressionAdapter
,TokenPairExpressionIterator
,TokenXMLExpressionIterator
public abstract class ExpressionAdapter extends ExpressionSupport
A helper class for developers wishing to implement anExpression
using Java code with a minimum amount of code to write so that the developer only needs to implement one of theevaluate(org.apache.camel.Exchange, Class)
orExpressionSupport.evaluate(org.apache.camel.Exchange)
methods.
-
-
Constructor Summary
Constructors Constructor Description ExpressionAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
assertionFailureMessage(org.apache.camel.Exchange exchange)
<T> T
evaluate(org.apache.camel.Exchange exchange, Class<T> type)
void
init(org.apache.camel.CamelContext context)
-
Methods inherited from class org.apache.camel.support.ExpressionSupport
assertMatches, evaluate, matches
-
-
-
-
Method Detail
-
init
public void init(org.apache.camel.CamelContext context)
- Specified by:
init
in interfaceorg.apache.camel.Expression
- Specified by:
init
in interfaceorg.apache.camel.Predicate
- Overrides:
init
in classExpressionSupport
-
assertionFailureMessage
protected String assertionFailureMessage(org.apache.camel.Exchange exchange)
- Specified by:
assertionFailureMessage
in classExpressionSupport
-
evaluate
public <T> T evaluate(org.apache.camel.Exchange exchange, Class<T> type)
-
-