Skip to content

Commit

Permalink
mention in Config.resolve docs that ConfigFactory methods may call it…
Browse files Browse the repository at this point in the history
… for you
  • Loading branch information
havocp committed May 19, 2013
1 parent 29c7d62 commit bad495b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions config/src/main/java/com/typesafe/config/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,16 @@ public interface Config extends ConfigMergeable {
* }
* </pre>
*
* <p>
* Many methods on {@link ConfigFactory} such as {@link
* ConfigFactory#load()} automatically resolve the loaded
* <code>Config</code> on the loaded stack of config files.
*
* <p> Resolving an already-resolved config is a harmless
* no-op, but again, it is best to resolve an entire stack of
* fallbacks (such as all your config files combined) rather
* than resolving each one individually.
*
* @return an immutable object with substitutions resolved
* @throws ConfigException.UnresolvedSubstitution
* if any substitutions refer to nonexistent paths
Expand Down

0 comments on commit bad495b

Please sign in to comment.