public interface Expression
init(CamelContext)
method which allows to prepare the
expressions such as wiring in resources, pre-parsing and what else.StaticExpression
Modifier and Type | Method and Description |
---|---|
<T> T |
evaluate(Exchange exchange,
Class<T> type)
Returns the value of the expression on the given exchange
|
default void |
init(CamelContext context)
Initialize the expression with the given camel context
|
<T> T evaluate(Exchange exchange, Class<T> type)
exchange
- the message exchange on which to evaluate the expressiontype
- the expected type of the evaluation resultdefault void init(CamelContext context)
context
- the camel contextApache Camel