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 StringassertionFailureMessage(org.apache.camel.Exchange exchange) <T> Tvoidinit(org.apache.camel.CamelContext context) Methods inherited from class org.apache.camel.support.ExpressionSupport
assertMatches, evaluate, matchesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
initin interfaceorg.apache.camel.Expression- Specified by:
initin interfaceorg.apache.camel.Predicate- Overrides:
initin classExpressionSupport
-
assertionFailureMessage
- Specified by:
assertionFailureMessagein classExpressionSupport
-
evaluate
-