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, lookupProvidedValue
protected DefaultsFileValueProvider(Properties properties)
public DefaultsFileValueProvider(InputStream stream, String sourceDescription) throws IOException
IOException
public DefaultsFileValueProvider(File path) throws IOException
IOException
public void validate(CommandScope commandScope) throws IllegalArgumentException
AbstractConfigurationValueProvider
validate
in interface ConfigurationValueProvider
validate
in class AbstractConfigurationValueProvider
IllegalArgumentException
public int getPrecedence()
ConfigurationValueProvider
ScopeValueProvider
DeprecatedConfigurationValueProvider
SystemPropertyValueProvider
DefaultsFileValueProvider
protected Map<?,?> getMap()
getMap
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 mapprotected String getSourceDescription()
getSourceDescription
in class AbstractMapConfigurationValueProvider
Copyright © 2023 Liquibase.org. All rights reserved.