mirror of
https://github.com/lightbend/config.git
synced 2025-03-21 14:50:41 +08:00
rename ConfigFactory to ConfigImpl
This commit is contained in:
parent
8f22d6e7ab
commit
f47a73ce28
@ -2,15 +2,15 @@ package com.typesafe.config;
|
||||
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import com.typesafe.config.impl.ConfigFactory;
|
||||
import com.typesafe.config.impl.ConfigImpl;
|
||||
|
||||
public final class Config {
|
||||
public static ConfigObject load(ConfigConfig configConfig) {
|
||||
return ConfigFactory.loadConfig(configConfig);
|
||||
return ConfigImpl.loadConfig(configConfig);
|
||||
}
|
||||
|
||||
public static ConfigObject load(String rootPath) {
|
||||
return ConfigFactory.loadConfig(new ConfigConfig(rootPath, null));
|
||||
return ConfigImpl.loadConfig(new ConfigConfig(rootPath, null));
|
||||
}
|
||||
|
||||
private static String getUnits(String s) {
|
||||
|
@ -14,7 +14,7 @@ import com.typesafe.config.ConfigTransformer;
|
||||
import com.typesafe.config.ConfigValue;
|
||||
|
||||
/** This is public but is only supposed to be used by the "config" package */
|
||||
public class ConfigFactory {
|
||||
public class ConfigImpl {
|
||||
public static ConfigObject loadConfig(ConfigConfig configConfig) {
|
||||
AbstractConfigObject system = null;
|
||||
try {
|
Loading…
Reference in New Issue
Block a user