use of com.tencent.polaris.factory.config.consumer.ConsumerConfigImpl in project polaris-java by polarismesh.
the class ConfigurationImpl method setDefault.
@Override
public void setDefault(Object defaultObject) {
if (null == global) {
global = new GlobalConfigImpl();
}
if (null == consumer) {
consumer = new ConsumerConfigImpl();
}
if (null == provider) {
provider = new ProviderConfigImpl();
}
if (null == configFile) {
configFile = new ConfigFileConfigImpl();
}
if (null != defaultObject) {
Configuration configuration = (Configuration) defaultObject;
global.setDefault(configuration.getGlobal());
consumer.setDefault(configuration.getConsumer());
provider.setDefault(configuration.getProvider());
configFile.setDefault(configuration.getConfigFile());
}
}
Aggregations