public class LazyExpressionLanguageAdaptor extends Object implements ExtendedExpressionLanguageAdaptor
ExpressionLanguageSessionAdaptor until the moment in which it's actually asked to resolve an
expression.
A CheckedSupplier will be used to obtain the delegate. The supplier will only be invoked once and the return
value will be cached.
| Constructor and Description |
|---|
LazyExpressionLanguageAdaptor(CheckedSupplier<ExtendedExpressionLanguageAdaptor> delegateSupplier)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
addGlobalBindings(org.mule.runtime.api.el.BindingContext bindingContext) |
org.mule.runtime.api.el.CompiledExpression |
compile(String expression,
org.mule.runtime.api.el.BindingContext bindingContext) |
org.mule.runtime.api.metadata.TypedValue |
evaluate(String expression,
CoreEvent event,
org.mule.runtime.api.el.BindingContext context) |
org.mule.runtime.api.metadata.TypedValue |
evaluate(String expression,
CoreEvent event,
org.mule.runtime.api.component.location.ComponentLocation componentLocation,
org.mule.runtime.api.el.BindingContext bindingContext) |
org.mule.runtime.api.metadata.TypedValue |
evaluate(String expression,
CoreEvent event,
CoreEvent.Builder eventBuilder,
org.mule.runtime.api.component.location.ComponentLocation componentLocation,
org.mule.runtime.api.el.BindingContext bindingContext) |
org.mule.runtime.api.metadata.TypedValue |
evaluate(String expression,
org.mule.runtime.api.metadata.DataType expectedOutputType,
CoreEvent event,
org.mule.runtime.api.el.BindingContext context) |
org.mule.runtime.api.metadata.TypedValue |
evaluate(String expression,
org.mule.runtime.api.metadata.DataType expectedOutputType,
CoreEvent event,
org.mule.runtime.api.component.location.ComponentLocation componentLocation,
org.mule.runtime.api.el.BindingContext context,
boolean failOnNull) |
org.mule.runtime.api.metadata.TypedValue<?> |
evaluateLogExpression(String expression,
CoreEvent event,
org.mule.runtime.api.component.location.ComponentLocation componentLocation,
org.mule.runtime.api.el.BindingContext bindingContext) |
ExpressionLanguageSessionAdaptor |
openSession(org.mule.runtime.api.component.location.ComponentLocation componentLocation,
CoreEvent event,
org.mule.runtime.api.el.BindingContext context) |
Iterator<org.mule.runtime.api.metadata.TypedValue<?>> |
split(String expression,
CoreEvent event,
org.mule.runtime.api.el.BindingContext bindingContext) |
Iterator<org.mule.runtime.api.metadata.TypedValue<?>> |
split(String expression,
CoreEvent event,
org.mule.runtime.api.component.location.ComponentLocation componentLocation,
org.mule.runtime.api.el.BindingContext bindingContext) |
org.mule.runtime.api.el.ValidationResult |
validate(String expression) |
public LazyExpressionLanguageAdaptor(CheckedSupplier<ExtendedExpressionLanguageAdaptor> delegateSupplier)
delegateSupplier - the supplier that provides the wrapped adaptorpublic void addGlobalBindings(org.mule.runtime.api.el.BindingContext bindingContext)
addGlobalBindings in interface ExpressionLanguageAdaptorpublic org.mule.runtime.api.metadata.TypedValue evaluate(String expression, CoreEvent event, CoreEvent.Builder eventBuilder, org.mule.runtime.api.component.location.ComponentLocation componentLocation, org.mule.runtime.api.el.BindingContext bindingContext) throws ExpressionRuntimeException
evaluate in interface ExtendedExpressionLanguageAdaptorExpressionRuntimeExceptionpublic org.mule.runtime.api.metadata.TypedValue evaluate(String expression, CoreEvent event, org.mule.runtime.api.component.location.ComponentLocation componentLocation, org.mule.runtime.api.el.BindingContext bindingContext) throws ExpressionRuntimeException
evaluate in interface ExpressionLanguageAdaptorExpressionRuntimeExceptionpublic org.mule.runtime.api.metadata.TypedValue evaluate(String expression, CoreEvent event, org.mule.runtime.api.el.BindingContext context) throws ExpressionRuntimeException
evaluate in interface ExpressionLanguageAdaptorExpressionRuntimeExceptionpublic org.mule.runtime.api.metadata.TypedValue evaluate(String expression, org.mule.runtime.api.metadata.DataType expectedOutputType, CoreEvent event, org.mule.runtime.api.el.BindingContext context) throws ExpressionRuntimeException
evaluate in interface ExpressionLanguageAdaptorExpressionRuntimeExceptionpublic org.mule.runtime.api.metadata.TypedValue evaluate(String expression, org.mule.runtime.api.metadata.DataType expectedOutputType, CoreEvent event, org.mule.runtime.api.component.location.ComponentLocation componentLocation, org.mule.runtime.api.el.BindingContext context, boolean failOnNull) throws ExpressionRuntimeException
evaluate in interface ExpressionLanguageAdaptorExpressionRuntimeExceptionpublic org.mule.runtime.api.el.CompiledExpression compile(String expression, org.mule.runtime.api.el.BindingContext bindingContext)
compile in interface ExpressionLanguageAdaptorpublic org.mule.runtime.api.metadata.TypedValue<?> evaluateLogExpression(String expression, CoreEvent event, org.mule.runtime.api.component.location.ComponentLocation componentLocation, org.mule.runtime.api.el.BindingContext bindingContext) throws ExpressionRuntimeException
evaluateLogExpression in interface ExpressionLanguageAdaptorExpressionRuntimeExceptionpublic org.mule.runtime.api.el.ValidationResult validate(String expression)
validate in interface ExpressionLanguageAdaptorpublic Iterator<org.mule.runtime.api.metadata.TypedValue<?>> split(String expression, CoreEvent event, org.mule.runtime.api.component.location.ComponentLocation componentLocation, org.mule.runtime.api.el.BindingContext bindingContext) throws ExpressionRuntimeException
split in interface ExpressionLanguageAdaptorExpressionRuntimeExceptionpublic Iterator<org.mule.runtime.api.metadata.TypedValue<?>> split(String expression, CoreEvent event, org.mule.runtime.api.el.BindingContext bindingContext) throws ExpressionRuntimeException
split in interface ExpressionLanguageAdaptorExpressionRuntimeExceptionpublic ExpressionLanguageSessionAdaptor openSession(org.mule.runtime.api.component.location.ComponentLocation componentLocation, CoreEvent event, org.mule.runtime.api.el.BindingContext context)
openSession in interface ExpressionLanguageAdaptorCopyright © 2003–2025 MuleSoft, Inc.. All rights reserved.