|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExpressionLanguage
Allows for the execution of expressions within Mule using an expression language. Expression language
implementations should not only wrap an expression language runtime but populate the context such that
expression can be used to access, and optionally mutate, both Mule configuration and the current message
being processed via expression variables. Runtime exceptions should be caught and wrapped in a Mule
ExpressionRuntimeException
before being re-thrown.
Method Summary | ||
---|---|---|
|
evaluate(String expression)
Execute the expression returning the result. |
|
|
evaluate(String expression,
Map<String,Object> vars)
Execute the expression returning the result. |
|
|
evaluate(String expression,
MuleEvent event)
Execute the expression returning the result. |
|
|
evaluate(String expression,
MuleEvent event,
Map<String,Object> vars)
Execute the expression returning the result. |
|
|
evaluate(String expression,
MuleMessage message)
Deprecated. |
|
|
evaluate(String expression,
MuleMessage message,
Map<String,Object> vars)
Deprecated. |
|
boolean |
isValid(String expression)
Validates the expression returning true is the expression is valid, false otherwise.. |
|
void |
validate(String expression)
Validates the expression returning. |
Method Detail |
---|
<T> T evaluate(String expression)
T
- the return type expectedexpression
- the expression to be executed
<T> T evaluate(String expression, Map<String,Object> vars)
T
- the return type expectedexpression
- the expression to be executedvars
- a map of expression variables
<T> T evaluate(String expression, MuleEvent event)
T
- the return type expectedexpression
- the expression to be executedevent
- the current event being processed
<T> T evaluate(String expression, MuleEvent event, Map<String,Object> vars)
T
- the return type expectedexpression
- the expression to be executedevent
- the current event being processedvars
- a map of expression variables
boolean isValid(String expression)
expression
-
void validate(String expression) throws InvalidExpressionException
ExpressionInvalidException
will be thrown is the All
implementors should should validate expression syntactically. Semantic validation is optional.
expression
-
InvalidExpressionException
@Deprecated <T> T evaluate(String expression, MuleMessage message)
evaluate(String, MuleEvent)
@Deprecated <T> T evaluate(String expression, MuleMessage message, Map<String,Object> vars)
evaluate(String, MuleEvent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |