public interface OperationContext
| Modifier and Type | Method and Description |
|---|---|
Optional<ConfigurationInstance> |
getConfiguration()
Returns the
ConfigurationInstance for the operation being executed. |
ExtensionModel |
getExtensionModel() |
RuntimeOperationModel |
getOperationModel()
Returns the model associated to the operation being executed
|
<T> T |
getParameter(String parameterName)
Returns the value associated to a parameter of name
parameterName |
<T> T |
getTypeSafeParameter(String parameterName,
Class<? extends T> expectedType)
Same as
getParameter(String) with the added restriction that the returned value is expected to be either
an instance of expectedType or null |
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 OperationModel 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 OperationModel being executednull. Notice that null means that the parameter has been
resolved to that value.NoSuchElementException - if the parameter is not present.<T> T getTypeSafeParameter(String parameterName, Class<? extends T> expectedType)
getParameter(String) with the added restriction that the returned value is expected to be either
an instance of expectedType or nullT - the returned value's expected typeparameterName - the name of a ParameterModel of the OperationModel being executedexpectedType - a Class of which the returned value is expected to be an instance ofnull. Notice that null means that the parameter has been
resolved to that value.NoSuchElementException - if the parameter is not present.IllegalArgumentException - if the returned value is not an instance of expectedTypeOptional<ConfigurationInstance> getConfiguration()
ConfigurationInstance for the operation being executed.ConfigurationInstance consistent with a corresponding ConfigurationModelRuntimeOperationModel getOperationModel()
RuntimeOperationModelExtensionModel getExtensionModel()
Copyright © 2016 MuleSoft, Inc.. All rights reserved.