public class DefaultsFileValueProvider extends AbstractMapConfigurationValueProvider
| Modifier | Constructor and Description |
|---|---|
|
DefaultsFileValueProvider(File path) |
|
DefaultsFileValueProvider(InputStream stream,
String sourceDescription) |
protected |
DefaultsFileValueProvider(Properties properties) |
| 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, lookupProvidedValueprotected DefaultsFileValueProvider(Properties properties)
public DefaultsFileValueProvider(InputStream stream, String sourceDescription) throws IOException
IOExceptionpublic DefaultsFileValueProvider(File path) throws IOException
IOExceptionpublic void validate(CommandScope commandScope) throws IllegalArgumentException
AbstractConfigurationValueProvidervalidate in interface ConfigurationValueProvidervalidate in class AbstractConfigurationValueProviderIllegalArgumentExceptionpublic int getPrecedence()
ConfigurationValueProviderScopeValueProviderDeprecatedConfigurationValueProviderSystemPropertyValueProviderDefaultsFileValueProviderprotected Map<?,?> getMap()
getMap 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 mapprotected String getSourceDescription()
getSourceDescription in class AbstractMapConfigurationValueProviderCopyright © 2022 Liquibase.org. All rights reserved.