T - public class ExpressionValueResolver<T> extends Object implements ValueResolver<T>
ValueResolver which evaluates a MEL expressions
It resolves the expressions by making use of the AttributeEvaluator so that it's compatible with simple
expressions and templates alike
| Constructor and Description |
|---|
ExpressionValueResolver(String expression,
MuleContext muleContext) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isDynamic()
returns
false if subsequent invocations to ValueResolver.resolve(Event) will return the same value. |
T |
resolve(Event event)
Resolves a value from the given
event |
public ExpressionValueResolver(String expression, MuleContext muleContext)
public T resolve(Event event) throws org.mule.runtime.api.exception.MuleException
ValueResolvereventresolve in interface ValueResolver<T>event - a Eventorg.mule.runtime.api.exception.MuleException - if the resolution of the value failspublic boolean isDynamic()
ValueResolverfalse if subsequent invocations to ValueResolver.resolve(Event) will return the same value. Notice that if it
returns true, then it might return different values per invocation but that's not guaranteed.isDynamic in interface ValueResolver<T>trueCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.