Package liquibase.configuration.core
Class DefaultsFileValueProvider
- java.lang.Object
-
- liquibase.configuration.AbstractConfigurationValueProvider
-
- liquibase.configuration.AbstractMapConfigurationValueProvider
-
- liquibase.configuration.core.DefaultsFileValueProvider
-
- All Implemented Interfaces:
ConfigurationValueProvider
public class DefaultsFileValueProvider extends AbstractMapConfigurationValueProvider
-
-
Constructor Summary
Constructors Modifier Constructor Description DefaultsFileValueProvider(File path)DefaultsFileValueProvider(InputStream stream, String sourceDescription)protectedDefaultsFileValueProvider(Properties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<?,?>getMap()intgetPrecedence()Returns the precedence of values returned by this provider.protected StringgetSourceDescription()protected booleankeyMatches(String wantedKey, String storedKey)Used byConfigurationValueProvider.getProvidedValue(String[])to determine of a given map entry matches the wanted key.voidvalidate(CommandScope commandScope)Default implementation does no checking-
Methods inherited from class liquibase.configuration.AbstractMapConfigurationValueProvider
getMapHash, getProvidedValue, isValueSet, lookupProvidedValue
-
-
-
-
Constructor Detail
-
DefaultsFileValueProvider
protected DefaultsFileValueProvider(Properties properties)
-
DefaultsFileValueProvider
public DefaultsFileValueProvider(InputStream stream, String sourceDescription) throws IOException
- Throws:
IOException
-
DefaultsFileValueProvider
public DefaultsFileValueProvider(File path) throws IOException
- Throws:
IOException
-
-
Method Detail
-
validate
public void validate(CommandScope commandScope) throws IllegalArgumentException
Description copied from class:AbstractConfigurationValueProviderDefault implementation does no checking- Specified by:
validatein interfaceConfigurationValueProvider- Overrides:
validatein classAbstractConfigurationValueProvider- Throws:
IllegalArgumentException
-
getPrecedence
public int getPrecedence()
Description copied from interface:ConfigurationValueProviderReturns the precedence of values returned by this provider. Higher a provider with higher precedence overrides values from lower precedence providers.
Standard provider precedence:- 400
ScopeValueProvider - 350
DeprecatedConfigurationValueProvider - 250 Integration specific providers
- 300: TODO JNDI attributes
- 250: TODO Servlet Context
- 200
SystemPropertyValueProvider - 150 EnvironmentValueProvider
- 100: TODO profile/context specific properties files
- 50:
DefaultsFileValueProvider
- 400
-
getMap
public Map<?,?> getMap()
- Specified by:
getMapin classAbstractMapConfigurationValueProvider
-
keyMatches
protected boolean keyMatches(String wantedKey, String storedKey)
Description copied from class:AbstractMapConfigurationValueProviderUsed byConfigurationValueProvider.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-case- Overrides:
keyMatchesin classAbstractMapConfigurationValueProvider- Parameters:
wantedKey- the configuration key requestedstoredKey- the key stored in the map
-
getSourceDescription
protected String getSourceDescription()
- Specified by:
getSourceDescriptionin classAbstractMapConfigurationValueProvider
-
-