@NoImplement public interface ExtendedExpressionManager extends ExpressionManager
ExpressionManager
supporting mutating operations and the propagation of more variables.
Only meant to distinguish the Mule 3 inherited behaviour from the current approach.
DEFAULT_EXPRESSION_POSTFIX, DEFAULT_EXPRESSION_PREFIX
Modifier and Type | Method and Description |
---|---|
void |
enrich(String expression,
CoreEvent event,
CoreEvent.Builder eventBuilder,
ComponentLocation componentLocation,
TypedValue value)
Deprecated.
Mutation via expressions is deprecated.
|
TypedValue |
evaluate(String expression,
CoreEvent event,
CoreEvent.Builder eventBuilder,
ComponentLocation componentLocation)
Deprecated.
Mutation via expressions is deprecated.
|
String |
parse(String expression,
CoreEvent event,
ComponentLocation componentLocation)
Deprecated.
Parsing of expressions is deprecated. Use standard evaluation instead.
|
evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, evaluateBoolean, evaluateBoolean, parseLogTemplate, split, split
isExpression, isValid
addGlobalBindings, evaluate, evaluate, evaluateLogExpression, split, validate
@Deprecated TypedValue evaluate(String expression, CoreEvent event, CoreEvent.Builder eventBuilder, ComponentLocation componentLocation) throws ExpressionRuntimeException
This version of evaluate
allows CoreEvent
or InternalMessage
mutation performed within the expression to
be maintained post-evaluation via the use of a result CoreEvent.Builder
which should be created
from the original event before being passed and then used to construct the post-evaluation event.
expression
- the expression to be executedevent
- the current event being processedeventBuilder
- event builder instance used to mutate the current message or event.componentLocation
- the location of the component where the event is being processedExpressionRuntimeException
@Deprecated void enrich(String expression, CoreEvent event, CoreEvent.Builder eventBuilder, ComponentLocation componentLocation, TypedValue value)
This version of enrich
allows CoreEvent
or InternalMessage
mutation performed within the expression to be
maintained post-evaluation via the use of a result CoreEvent.Builder
which should be created
from the original event before being passed and then used to construct the post-evaluation event.
expression
- a single expression i.e. header://foo that defines how the message should be enrichedevent
- The event to be enrichedeventBuilder
- event builder instance used to mutate the current message or event.componentLocation
- the location of the component where the event is being processedvalue
- The typed value used for enrichment@Deprecated String parse(String expression, CoreEvent event, ComponentLocation componentLocation) throws ExpressionRuntimeException
#evaluate(String, CoreEvent, FlowConstruct, BindingContext)
.
This version of evaluate
performs expression evaulation on an immutable event. Any CoreEvent
or
InternalMessage
mutation performed within the expression will impact within the context of expression evaluation but
will not mutated the event
parameter.
expression
- one or more expressions ebedded in a literal string i.e. "Value is #[mel:xpath://foo] other value is
#[mel:header:foo]."event
- The current event being processedcomponentLocation
- the location of the component where the event is being processedExpressionRuntimeException
- if the expression is invalid, or a null is found for the expression and 'failIfNull is set
to true.Copyright © 2018. All rights reserved.