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, lookupProvidedValuepublic int getPrecedence()
ConfigurationValueProviderScopeValueProviderDeprecatedConfigurationValueProviderSystemPropertyValueProviderDefaultsFileValueProviderprotected Map<?,?> getMap()
getMap in class AbstractMapConfigurationValueProviderpublic void validate(CommandScope commandScope) throws IllegalArgumentException
AbstractConfigurationValueProvidervalidate in interface ConfigurationValueProvidervalidate in class AbstractConfigurationValueProviderIllegalArgumentExceptionprotected String getSourceDescription()
getSourceDescription in class AbstractMapConfigurationValueProviderprotected boolean keyMatches(String wantedKey, String storedKey)
AbstractMapConfigurationValueProviderConfigurationValueProvider.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 AbstractMapConfigurationValueProviderwantedKey - the configuration key requestedstoredKey - the key stored in the mapCopyright © 2023 Liquibase.org. All rights reserved.