Top Fields Constructors Methods
liquibase.configuration.core

public Class DefaultsFileValueProvider

extends AbstractMapConfigurationValueProvider
Class Inheritance
Annotations
@LiquibaseService
skip:true
Imports
liquibase.GlobalConfiguration, .Scope, liquibase.command.CommandDefinition, .CommandFactory, .CommandScope, liquibase.configuration.AbstractMapConfigurationValueProvider, .LiquibaseConfiguration, liquibase.servicelocator.LiquibaseService, liquibase.util.StringUtil, java.io.*, java.nio.file.Files, java.util.Map, .Properties, .SortedSet, .TreeSet

Field Summary

Modifier and TypeField and Description
private final Properties
private final String

Constructor Summary

AccessConstructor and Description
protected
public
DefaultsFileValueProvider(InputStream stream, String sourceDescription)

public

Method Summary

Modifier and TypeMethod and Description
public Map<?, ?>
public int
getPrecedence()

Implements liquibase.configuration.ConfigurationValueProvider.getPrecedence.

Returns the precedence of values returned by this provider.

protected String
protected boolean
keyMatches(String
the configuration key requested
wantedKey
,
String
the key stored in the map
storedKey
)

Overrides liquibase.configuration.AbstractMapConfigurationValueProvider.keyMatches.

Used by ConfigurationValueProvider#getProvidedValue(String[]) to determine of a given map entry matches the wanted key.

private void
public void
Inherited from liquibase.configuration.AbstractMapConfigurationValueProvider:
getMapHashgetProvidedValueisValueSetlookupProvidedValue

Field Detail

propertiesback to summary
private final Properties properties
sourceDescriptionback to summary
private final String sourceDescription

Constructor Detail

DefaultsFileValueProviderback to summary
protected DefaultsFileValueProvider(Properties properties)
DefaultsFileValueProviderback to summary
public DefaultsFileValueProvider(InputStream stream, String sourceDescription) throws IOException
DefaultsFileValueProviderback to summary
public DefaultsFileValueProvider(File path) throws IOException

Method Detail

getMapback to summary
public Map<?, ?> getMap()

Implements abstract liquibase.configuration.AbstractMapConfigurationValueProvider.getMap.

Annotations
@Override
getPrecedenceback to summary
public int getPrecedence()

Implements liquibase.configuration.ConfigurationValueProvider.getPrecedence.

Doc from liquibase.configuration.ConfigurationValueProvider.getPrecedence.

Returns the precedence of values returned by this provider. Higher a provider with higher precedence overrides values from lower precedence providers.

Standard provider precedence:

Annotations
@Override
getSourceDescriptionback to summary
protected String getSourceDescription()

Implements abstract liquibase.configuration.AbstractMapConfigurationValueProvider.getSourceDescription.

Annotations
@Override
keyMatchesback to summary
protected boolean keyMatches(String wantedKey, String storedKey)

Overrides liquibase.configuration.AbstractMapConfigurationValueProvider.keyMatches.

Doc from liquibase.configuration.AbstractMapConfigurationValueProvider.keyMatches.

Used by 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-case

Parameters
wantedKey:String

the configuration key requested

storedKey:String

the key stored in the map

Annotations
@Override
trimAllPropertiesback to summary
private void trimAllProperties()
validateback to summary
public void validate(CommandScope commandScope) throws IllegalArgumentException

Overrides liquibase.configuration.AbstractConfigurationValueProvider.validate.

Implements liquibase.configuration.ConfigurationValueProvider.validate.

Doc from liquibase.configuration.AbstractConfigurationValueProvider.validate.

Default implementation does no checking

Annotations
@Override