public class DefaultConfigurationPropertiesResolver extends Object implements ConfigurationPropertiesResolver, org.mule.runtime.api.lifecycle.Initialisable, org.mule.runtime.api.lifecycle.Disposable
It will delegate the placeholder resolution to it's parent if it weren't able to resolve a value by itself.
| Modifier and Type | Field and Description |
|---|---|
static String |
PLACEHOLDER_PREFIX |
static String |
PLACEHOLDER_SUFFIX |
| Constructor and Description |
|---|
DefaultConfigurationPropertiesResolver(Optional<ConfigurationPropertiesResolver> parentResolver,
org.mule.runtime.properties.api.ConfigurationPropertiesProvider configurationPropertiesProvider) |
| Modifier and Type | Method and Description |
|---|---|
String |
apply(String t) |
void |
dispose() |
void |
initialise() |
Object |
resolvePlaceholderKeyValue(String placeholderKey)
Resolves the possible value of a placeholder key.
|
Object |
resolveValue(String value)
Resolves a value by searching and replacing placeholders on it.
|
void |
setAsRootResolver() |
void |
setRootResolver(ConfigurationPropertiesResolver rootResolver) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitidentitypublic static final String PLACEHOLDER_PREFIX
public static final String PLACEHOLDER_SUFFIX
public DefaultConfigurationPropertiesResolver(Optional<ConfigurationPropertiesResolver> parentResolver, org.mule.runtime.properties.api.ConfigurationPropertiesProvider configurationPropertiesProvider)
public Object resolveValue(String value)
resolveValue in interface ConfigurationPropertiesResolvervalue - a value that may contain placeholders.public void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableorg.mule.runtime.api.lifecycle.InitialisationExceptionpublic void dispose()
dispose in interface org.mule.runtime.api.lifecycle.Disposablepublic Object resolvePlaceholderKeyValue(String placeholderKey)
resolvePlaceholderKeyValue in interface ConfigurationPropertiesResolverplaceholderKey - the placeholder key which value needs to be resolved.public void setRootResolver(ConfigurationPropertiesResolver rootResolver)
public void setAsRootResolver()
Copyright © 2003–2024 MuleSoft, Inc.. All rights reserved.