liquibase.configuration.AbstractConfigurationContainer 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.
The newest version!
package liquibase.configuration;
import liquibase.Scope;
import liquibase.configuration.core.DeprecatedConfigurationValueProvider;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
/**
* @deprecated Use new {@link ConfigurationDefinition} style
*/
public abstract class AbstractConfigurationContainer implements ConfigurationContainer {
private final String namespace;
private final ConfigurationContainer container;
private final Map properties = new HashMap<>();
public AbstractConfigurationContainer(String namespace) {
this.namespace = namespace;
this.container = new ConfigurationContainer();
}
/**
* @deprecated
*/
protected ConfigurationContainer getContainer() {
return container;
}
/**
* @deprecated
*/
@Override
public ConfigurationProperty getProperty(String propertyName) {
return properties.get(propertyName);
}
/**
* @deprecated
*/
@Override
public Set getProperties() {
return new HashSet<>(properties.values());
}
/**
* @deprecated
*/
@Override
public T getValue(String propertyName, Class returnType) {
final ConfiguredValue