org.apache.camel
Interface Expression

All Known Implementing Classes:
AssertionClause.PredicateValueBuilder, BeanExpression, ConstantExpression, ELExpression, ExpressionAdapter, ExpressionClause, ExpressionDefinition, ExpressionSupport, GroovyExpression, GroovyExpression, HeaderExpression, HttpMethods, HttpMethods, JavaScriptExpression, JuelExpression, JXPathExpression, JXPathExpression, LanguageExpression, MethodCallExpression, MvelExpression, MvelExpression, NamespaceAwareExpression, OgnlExpression, OgnlExpression, PhpExpression, PropertyExpression, PythonExpression, RubyExpression, ScriptBuilder, SimpleBuilder, SimpleExpression, SpelExpression, SpELExpression, SqlBuilder, SqlExpression, TokenizerExpression, ValueBuilder, XPathBuilder, XPathExpression, XQueryBuilder, XQueryExpression

public interface Expression

An expression provides a plugin strategy for evaluating expressions on a message exchange to support things like scripting languages, XQuery or SQL as well as any arbitrary Java expression.

Version:

Method Summary
<T> T
evaluate(Exchange exchange, Class<T> type)
          Returns the value of the expression on the given exchange
 

Method Detail

evaluate

<T> T evaluate(Exchange exchange,
               Class<T> type)
Returns the value of the expression on the given exchange

Parameters:
exchange - the message exchange on which to evaluate the expression
type - the expected type of the evaluation result
Returns:
the value of the expression


Apache CAMEL