public class EnvironmentValueProvider extends AbstractMapConfigurationValueProvider
To handle shells that only allow underscores, it checks the following variations of a property:
Constructor and Description |
---|
EnvironmentValueProvider() |
Modifier and Type | Method and Description |
---|---|
protected Map<?,?> |
getMap() |
int |
getPrecedence()
Returns the precedence of values returned by this provider.
|
protected String |
getSourceDescription() |
protected boolean |
keyMatches(String wantedKey,
String storedKey)
Used by
ConfigurationValueProvider.getProvidedValue(String[]) to determine of a given map entry matches the wanted key. |
void |
validate(CommandScope commandScope)
Default implementation does no checking
|
getMapHash, getProvidedValue, isValueSet, lookupProvidedValue
public int getPrecedence()
ConfigurationValueProvider
ScopeValueProvider
DeprecatedConfigurationValueProvider
SystemPropertyValueProvider
DefaultsFileValueProvider
protected Map<?,?> getMap()
getMap
in class AbstractMapConfigurationValueProvider
public void validate(CommandScope commandScope) throws IllegalArgumentException
AbstractConfigurationValueProvider
validate
in interface ConfigurationValueProvider
validate
in class AbstractConfigurationValueProvider
IllegalArgumentException
protected String getSourceDescription()
getSourceDescription
in class AbstractMapConfigurationValueProvider
protected boolean keyMatches(String wantedKey, String storedKey)
AbstractMapConfigurationValueProvider
ConfigurationValueProvider.getProvidedValue(String[])
to determine of a given map entry matches the wanted key.
This implementation compares the values case-insensitively, and will replace camelCase words with kabob-casekeyMatches
in class AbstractMapConfigurationValueProvider
wantedKey
- the configuration key requestedstoredKey
- the key stored in the mapCopyright © 2023 Liquibase.org. All rights reserved.