public final class ValueProviderMediator<T extends org.mule.runtime.api.meta.model.parameter.ParameterizedModel & org.mule.runtime.api.meta.model.EnrichableModel> extends Object
values by coordinating the several moving parts that are affected by the
Value fetching process, so that such pieces can remain decoupled.| Constructor and Description |
|---|
ValueProviderMediator(T containerModel,
Supplier<MuleContext> muleContext)
Creates a new instance of the mediator
|
| Modifier and Type | Method and Description |
|---|---|
Set<org.mule.runtime.api.value.Value> |
getValues(String parameterName,
ParameterValueResolver parameterValueResolver)
Given the name of a parameter or parameter group, and if the parameter supports it, this will try to resolve
the
values for the parameter. |
Set<org.mule.runtime.api.value.Value> |
getValues(String parameterName,
ParameterValueResolver parameterValueResolver,
Supplier<Object> connectionSupplier,
Supplier<Object> configurationSupplier)
Given the name of a parameter or parameter group, and if the parameter supports it, this will try to resolve
the
values for the parameter. |
public ValueProviderMediator(T containerModel, Supplier<MuleContext> muleContext)
containerModel - container model which is a ParameterizedModel and EnrichableModelmuleContext - context to be able to initialize ValueProvider if necessarypublic Set<org.mule.runtime.api.value.Value> getValues(String parameterName, ParameterValueResolver parameterValueResolver) throws org.mule.runtime.extension.api.values.ValueResolvingException
values for the parameter.parameterName - the name of the parameter to resolve their possible valuesparameterValueResolver - parameter resolver required if the associated ValueProvider requires
the value of parameters from the same parameter container.Set of Value correspondent to the given parameterorg.mule.runtime.extension.api.values.ValueResolvingException - if an error occurs resolving valuespublic Set<org.mule.runtime.api.value.Value> getValues(String parameterName, ParameterValueResolver parameterValueResolver, Supplier<Object> connectionSupplier, Supplier<Object> configurationSupplier) throws org.mule.runtime.extension.api.values.ValueResolvingException
values for the parameter.parameterName - the name of the parameter to resolve their possible valuesparameterValueResolver - parameter resolver required if the associated ValueProvider requires
the value of parameters from the same parameter container.connectionSupplier - supplier of connection instances related to the container and used, if necessary, by the
ValueProviderconfigurationSupplier - supplier of connection instances related to the container and used, if necessary, by the
ValueProviderSet of Value correspondent to the given parameterorg.mule.runtime.extension.api.values.ValueResolvingException - if an error occurs resolving valuesCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.