com.github.bingoohuang.utils.config.impl.ConfigBuilder Maven / Gradle / Ivy
package com.github.bingoohuang.utils.config.impl;
import com.github.bingoohuang.utils.config.Configable;
import java.util.Properties;
public class ConfigBuilder implements DefConfigSetter {
private Properties properties;
@Override
public void setDefConfig(Configable defConfig) {
properties = new Properties(defConfig != null ? defConfig.getProperties() : null);
}
public void addConfig(Configable config) {
properties.putAll(config.getProperties());
}
public Configable buildConfig() {
return new DefaultConfigable(properties);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy