All Downloads are FREE. Search and download functionalities are using the official Maven repository.

liquibase.configuration.SystemPropertyProvider Maven / Gradle / Ivy

There is a newer version: 3.6.2.5.inovus
Show newest version
package liquibase.configuration;

/**
 * A ConfigurationValueProvider implementation that looks for overriding values in system properties.
 * Looks for system properties in the format "NAMESPACE.PROPERTY_NAME".
 */
public class SystemPropertyProvider implements ConfigurationValueProvider {

    @Override
    public Object getValue(String namespace, String property) {
        return System.getProperty(namespace +"."+property);
    }

    @Override
    public String describeValueLookupLogic(ConfigurationProperty property) {
        return "System property '"+property.getNamespace()+"."+property.getName()+"'";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy