public class ConfigurationProviderValueResolver extends Object implements ValueResolver<org.mule.runtime.extension.api.runtime.config.ConfigurationProvider>, org.mule.runtime.api.lifecycle.Initialisable, MuleContextAware
ValueResolver which locates and returns a ConfigurationProvider associated with a given
configuration provider reference. The reference can either be the name of the configuration provider or an expression which
resolves to the name.
The result of isDynamic() will depend only on whether the given reference is an expression or not.| Constructor and Description |
|---|
ConfigurationProviderValueResolver(String configurationProviderReference)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
initialise() |
boolean |
isDynamic()
Returns
false if subsequent invocations to ValueResolver.resolve(ValueResolvingContext) will return the same value. |
org.mule.runtime.extension.api.runtime.config.ConfigurationProvider |
resolve(ValueResolvingContext context)
Locates and returns the
ConfigurationProvider associated with the configurationProviderReference given upon
construction. |
void |
setMuleContext(MuleContext context) |
public org.mule.runtime.extension.api.runtime.config.ConfigurationProvider resolve(ValueResolvingContext context) throws org.mule.runtime.api.exception.MuleException
ConfigurationProvider associated with the configurationProviderReference given upon
construction.resolve in interface ValueResolver<org.mule.runtime.extension.api.runtime.config.ConfigurationProvider>context - a ValueResolvingContextConfigurationProvider associated with configurationProviderReferenceorg.mule.runtime.api.exception.MuleException - if an error occurred fetching the valueConfigurationException - if no object is registered under the name resolved from configurationProviderReferencepublic boolean isDynamic()
ValueResolverfalse if subsequent invocations to ValueResolver.resolve(ValueResolvingContext) will return the same value. Notice
that if it returns true, then it might return different values per invocation but that's not guaranteed.isDynamic in interface ValueResolver<org.mule.runtime.extension.api.runtime.config.ConfigurationProvider>falsepublic void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableorg.mule.runtime.api.lifecycle.InitialisationExceptionpublic void setMuleContext(MuleContext context)
setMuleContext in interface MuleContextAwareCopyright © 2003–2022 MuleSoft, Inc.. All rights reserved.