M
- the generic type of of the model which represents the component beign executed@NoImplement public interface ExecutionContext<M extends ComponentModel>
Modifier and Type | Method and Description |
---|---|
M |
getComponentModel() |
Optional<ConfigurationInstance> |
getConfiguration()
Returns the
ConfigurationInstance for the operation being executed. |
ExtensionModel |
getExtensionModel() |
<T> T |
getParameter(String parameterName)
Returns the value associated to a parameter of name
parameterName |
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)
parameterName
T
- 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.Map<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 ConfigurationModel
ExtensionModel getExtensionModel()
ExtensionModel
which owns the getComponentModel()
M getComponentModel()
Copyright © 2018. All rights reserved.