liquibase.configuration.core.SystemPropertyValueProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of liquibase-core Show documentation
Show all versions of liquibase-core Show documentation
Liquibase is a tool for managing and executing database changes.
package liquibase.configuration.core;
import liquibase.configuration.AbstractMapConfigurationValueProvider;
import java.util.Map;
/**
* Searches for the configuration values in the system properties {@link System#getProperties()}.
*
* To improve usability, it will search for the given key case insensitively.
*/
public class SystemPropertyValueProvider extends AbstractMapConfigurationValueProvider {
@Override
public int getPrecedence() {
return 200;
}
@Override
protected String getSourceDescription() {
return "System property";
}
@Override
protected Map, ?> getMap() {
return System.getProperties();
}
}