M - the generic type of of the model which represents the component beign executedpublic class LazyExecutionContext<M extends org.mule.runtime.api.meta.model.ComponentModel> extends Object implements EventedExecutionContext<M>
ExecutionContext which resolves the values of the parameters
of the operation on demand.
The laziness of this class is meant for cases where the resolution of a parameters are wanted to
be isolated between each other, so when resolving a parameter value, does not matter if other
parameters have invalid values.| Constructor and Description |
|---|
LazyExecutionContext(ResolverSet resolverSet,
M componentModel,
org.mule.runtime.api.meta.model.ExtensionModel extensionModel,
ValueResolvingContext resolvingContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
changeEvent(CoreEvent updated)
Changes the
CoreEvent on which an operation is to be executed. |
M |
getComponentModel() |
Optional<org.mule.runtime.extension.api.runtime.config.ConfigurationInstance> |
getConfiguration() |
CoreEvent |
getEvent()
Returns the
CoreEvent on which an operation is to be executed |
org.mule.runtime.api.meta.model.ExtensionModel |
getExtensionModel() |
<T> T |
getParameter(String parameterName) |
<T> T |
getParameterOrDefault(String parameterName,
T defaultValue) |
Map<String,Object> |
getParameters() |
boolean |
hasParameter(String parameterName) |
public LazyExecutionContext(ResolverSet resolverSet, M componentModel, org.mule.runtime.api.meta.model.ExtensionModel extensionModel, ValueResolvingContext resolvingContext)
public boolean hasParameter(String parameterName)
hasParameter in interface org.mule.runtime.extension.api.runtime.operation.ExecutionContext<M extends org.mule.runtime.api.meta.model.ComponentModel>public <T> T getParameter(String parameterName)
getParameter in interface org.mule.runtime.extension.api.runtime.operation.ExecutionContext<M extends org.mule.runtime.api.meta.model.ComponentModel>public <T> T getParameterOrDefault(String parameterName, T defaultValue)
getParameterOrDefault in interface org.mule.runtime.extension.api.runtime.operation.ExecutionContext<M extends org.mule.runtime.api.meta.model.ComponentModel>public Map<String,Object> getParameters()
getParameters in interface org.mule.runtime.extension.api.runtime.operation.ExecutionContext<M extends org.mule.runtime.api.meta.model.ComponentModel>public Optional<org.mule.runtime.extension.api.runtime.config.ConfigurationInstance> getConfiguration()
getConfiguration in interface org.mule.runtime.extension.api.runtime.operation.ExecutionContext<M extends org.mule.runtime.api.meta.model.ComponentModel>public CoreEvent getEvent()
EventedExecutionContextCoreEvent on which an operation is to be executedgetEvent in interface EventedExecutionContext<M extends org.mule.runtime.api.meta.model.ComponentModel>public void changeEvent(CoreEvent updated)
EventedExecutionContextCoreEvent on which an operation is to be executed. Not null.changeEvent in interface EventedExecutionContext<M extends org.mule.runtime.api.meta.model.ComponentModel>updated - the event to usepublic M getComponentModel()
getComponentModel in interface org.mule.runtime.extension.api.runtime.operation.ExecutionContext<M extends org.mule.runtime.api.meta.model.ComponentModel>public org.mule.runtime.api.meta.model.ExtensionModel getExtensionModel()
getExtensionModel in interface org.mule.runtime.extension.api.runtime.operation.ExecutionContext<M extends org.mule.runtime.api.meta.model.ComponentModel>Copyright © 2003–2020 MuleSoft, Inc.. All rights reserved.