com.typesafe.config.ConfigFactory.load(Config) 有什么作用?

What does com.typesafe.config.ConfigFactory.load(Config) do?

classcom.typesafe.config.ConfigFactory中的方法load(Config)有什么作用?输出配置与输入配置有何不同?

documentation 表示:

Assembles a standard configuration using a custom Config object rather than loading "application.conf". The Config object will be sandwiched between the default reference config and default overrides and then resolved.

我不明白它在说什么。

代码表明:

public static Config load(Config config) {
    return load(checkedContextClassLoader("load"), config);
}

它似乎加载了一个我不明白的 checkedContextClassLoader。有人可以对此给出简短易懂的解释吗?

How would the output Config be different from the input Config?

它具有参考配置(从 reference.conf 加载)作为输入 Config 中未定义的任何内容的回退,然后应用系统属性的覆盖 ("Future versions may get overrides in more places. It is not guaranteed that this method only uses system properties.")。

It seems to be loading with a checkedContextClassLoader which I don't understand.

我认为这不是重要的部分。这只是库使用的默认类加载器。