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
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
assertionFailureMessage
(org.apache.camel.Exchange exchange) <T> T
void
init
(org.apache.camel.CamelContext context) Methods inherited from class org.apache.camel.support.ExpressionSupport
assertMatches, evaluate, matches
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.camel.Predicate
initPredicate
-
Constructor Details
-
ExpressionAdapter
public ExpressionAdapter()
-
-
Method Details
-
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
- Specified by:
assertionFailureMessage
in classExpressionSupport
-
evaluate
-