M - the generic type of of the model which represents the component beign executed@NoImplement
public interface ExecutionContext<M extends org.mule.runtime.api.meta.model.ComponentModel>
| Modifier and Type | Method and Description |
|---|---|
M |
getComponentModel() |
Optional<ConfigurationInstance> |
getConfiguration()
Returns the
ConfigurationInstance for the operation being executed. |
org.mule.runtime.api.meta.model.ExtensionModel |
getExtensionModel() |
<T> T |
getParameter(String parameterName)
Returns the value associated to a parameter of name
parameterName |
<T> T |
getParameterOrDefault(String parameterName,
T defaultValue)
Returns the value associated to a parameter of name
parameterName or defaultValue if such parameter is not
present. |
Map<String,Object> |
getParameters()
Returns an immutable map containing all the parameters associated with this execution.
|
boolean |
hasParameter(String parameterName)
Returns whether parameter of name
parameterName has a value associated to it. |
boolean hasParameter(String parameterName)
parameterName has a value associated to it.parameterName - the name of a ParameterModel of the ComponentModel being executedtrue if the parameter is present.<T> T getParameter(String parameterName)
parameterNameT - the returned value's generic typeparameterName - the name of a ParameterModel of the ComponentModel being executednull. Notice that null means that the parameter has been resolved to that
value.NoSuchElementException - if the parameter is not present.<T> T getParameterOrDefault(String parameterName, T defaultValue)
parameterName or defaultValue if such parameter is not
present.T - the returned value's generic typeparameterName - the name of a ParameterModel of the ComponentModel being executeddefaultValue - the default value to return in case the parameter is not presentdefaultValueMap<String,Object> getParameters()
It is guaranteed that whatever value returned in this map will be the exact same as invoking getParameter(String)
with the same key, no matter how many times invoked nor in which order.
Map with all the parametersOptional<ConfigurationInstance> getConfiguration()
ConfigurationInstance for the operation being executed.ConfigurationInstance consistent with a corresponding ConfigurationModelorg.mule.runtime.api.meta.model.ExtensionModel getExtensionModel()
ExtensionModel which owns the getComponentModel()M getComponentModel()
Copyright © 2024 MuleSoft, Inc.. All rights reserved.