org.apache.camel.impl
Class ExpressionAdapter
java.lang.Object
org.apache.camel.impl.ExpressionSupport
org.apache.camel.impl.ExpressionAdapter
- All Implemented Interfaces:
- Expression, Predicate
public abstract class ExpressionAdapter
- extends ExpressionSupport
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
evaluate(org.apache.camel.Exchange, Class)
methods.
- Version:
- $Revision: 766032 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExpressionAdapter
public ExpressionAdapter()
assertionFailureMessage
protected String assertionFailureMessage(Exchange exchange)
- Specified by:
assertionFailureMessage
in class ExpressionSupport
evaluate
public <T> T evaluate(Exchange exchange,
Class<T> type)
- Description copied from interface:
Expression
- Returns the value of the expression on the given exchange
- Parameters:
exchange
- the message exchange on which to evaluate the expressiontype
- the expected type of the evaluation result
- Returns:
- the value of the expression
Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.