diff --git a/latest/api/allclasses-frame.html b/latest/api/allclasses-frame.html index 32b07c7f..5d3e2fbf 100644 --- a/latest/api/allclasses-frame.html +++ b/latest/api/allclasses-frame.html @@ -2,12 +2,12 @@ - + All Classes - + diff --git a/latest/api/allclasses-noframe.html b/latest/api/allclasses-noframe.html index e25b4dab..a6473d91 100644 --- a/latest/api/allclasses-noframe.html +++ b/latest/api/allclasses-noframe.html @@ -2,12 +2,12 @@ - + All Classes - + diff --git a/latest/api/com/typesafe/config/Config.html b/latest/api/com/typesafe/config/Config.html index 31d85365..5e4cadd4 100644 --- a/latest/api/com/typesafe/config/Config.html +++ b/latest/api/com/typesafe/config/Config.html @@ -2,12 +2,12 @@ - + Config - + diff --git a/latest/api/com/typesafe/config/ConfigException.BadPath.html b/latest/api/com/typesafe/config/ConfigException.BadPath.html index 86f8daff..4c7772b4 100644 --- a/latest/api/com/typesafe/config/ConfigException.BadPath.html +++ b/latest/api/com/typesafe/config/ConfigException.BadPath.html @@ -2,12 +2,12 @@ - + ConfigException.BadPath - + diff --git a/latest/api/com/typesafe/config/ConfigException.BadValue.html b/latest/api/com/typesafe/config/ConfigException.BadValue.html index e6cec5ed..2623c026 100644 --- a/latest/api/com/typesafe/config/ConfigException.BadValue.html +++ b/latest/api/com/typesafe/config/ConfigException.BadValue.html @@ -2,12 +2,12 @@ - + ConfigException.BadValue - + diff --git a/latest/api/com/typesafe/config/ConfigException.BugOrBroken.html b/latest/api/com/typesafe/config/ConfigException.BugOrBroken.html index 8cb9dd98..9fdf9ed5 100644 --- a/latest/api/com/typesafe/config/ConfigException.BugOrBroken.html +++ b/latest/api/com/typesafe/config/ConfigException.BugOrBroken.html @@ -2,12 +2,12 @@ - + ConfigException.BugOrBroken - + diff --git a/latest/api/com/typesafe/config/ConfigException.Generic.html b/latest/api/com/typesafe/config/ConfigException.Generic.html index 4163544d..1f01822a 100644 --- a/latest/api/com/typesafe/config/ConfigException.Generic.html +++ b/latest/api/com/typesafe/config/ConfigException.Generic.html @@ -2,12 +2,12 @@ - + ConfigException.Generic - + diff --git a/latest/api/com/typesafe/config/ConfigException.IO.html b/latest/api/com/typesafe/config/ConfigException.IO.html index c3465231..b25bb9ad 100644 --- a/latest/api/com/typesafe/config/ConfigException.IO.html +++ b/latest/api/com/typesafe/config/ConfigException.IO.html @@ -2,12 +2,12 @@ - + ConfigException.IO - + diff --git a/latest/api/com/typesafe/config/ConfigException.Missing.html b/latest/api/com/typesafe/config/ConfigException.Missing.html index b3a78f7d..ea6d8cfa 100644 --- a/latest/api/com/typesafe/config/ConfigException.Missing.html +++ b/latest/api/com/typesafe/config/ConfigException.Missing.html @@ -2,12 +2,12 @@ - + ConfigException.Missing - + diff --git a/latest/api/com/typesafe/config/ConfigException.NotResolved.html b/latest/api/com/typesafe/config/ConfigException.NotResolved.html index 18978520..eb99c9d0 100644 --- a/latest/api/com/typesafe/config/ConfigException.NotResolved.html +++ b/latest/api/com/typesafe/config/ConfigException.NotResolved.html @@ -2,12 +2,12 @@ - + ConfigException.NotResolved - + diff --git a/latest/api/com/typesafe/config/ConfigException.Null.html b/latest/api/com/typesafe/config/ConfigException.Null.html index 391520e1..11134239 100644 --- a/latest/api/com/typesafe/config/ConfigException.Null.html +++ b/latest/api/com/typesafe/config/ConfigException.Null.html @@ -2,12 +2,12 @@ - + ConfigException.Null - + diff --git a/latest/api/com/typesafe/config/ConfigException.Parse.html b/latest/api/com/typesafe/config/ConfigException.Parse.html index 0fee259a..8ceb9ac9 100644 --- a/latest/api/com/typesafe/config/ConfigException.Parse.html +++ b/latest/api/com/typesafe/config/ConfigException.Parse.html @@ -2,12 +2,12 @@ - + ConfigException.Parse - + diff --git a/latest/api/com/typesafe/config/ConfigException.UnresolvedSubstitution.html b/latest/api/com/typesafe/config/ConfigException.UnresolvedSubstitution.html index 26139c4c..98a42493 100644 --- a/latest/api/com/typesafe/config/ConfigException.UnresolvedSubstitution.html +++ b/latest/api/com/typesafe/config/ConfigException.UnresolvedSubstitution.html @@ -2,12 +2,12 @@ - + ConfigException.UnresolvedSubstitution - + diff --git a/latest/api/com/typesafe/config/ConfigException.ValidationFailed.html b/latest/api/com/typesafe/config/ConfigException.ValidationFailed.html index 7b0e602b..d03429c4 100644 --- a/latest/api/com/typesafe/config/ConfigException.ValidationFailed.html +++ b/latest/api/com/typesafe/config/ConfigException.ValidationFailed.html @@ -2,12 +2,12 @@ - + ConfigException.ValidationFailed - + diff --git a/latest/api/com/typesafe/config/ConfigException.ValidationProblem.html b/latest/api/com/typesafe/config/ConfigException.ValidationProblem.html index 77988930..a568f32d 100644 --- a/latest/api/com/typesafe/config/ConfigException.ValidationProblem.html +++ b/latest/api/com/typesafe/config/ConfigException.ValidationProblem.html @@ -2,12 +2,12 @@ - + ConfigException.ValidationProblem - + diff --git a/latest/api/com/typesafe/config/ConfigException.WrongType.html b/latest/api/com/typesafe/config/ConfigException.WrongType.html index f1891545..db7b80d9 100644 --- a/latest/api/com/typesafe/config/ConfigException.WrongType.html +++ b/latest/api/com/typesafe/config/ConfigException.WrongType.html @@ -2,12 +2,12 @@ - + ConfigException.WrongType - + diff --git a/latest/api/com/typesafe/config/ConfigException.html b/latest/api/com/typesafe/config/ConfigException.html index 4ddb0e66..c25c8494 100644 --- a/latest/api/com/typesafe/config/ConfigException.html +++ b/latest/api/com/typesafe/config/ConfigException.html @@ -2,12 +2,12 @@ - + ConfigException - + @@ -104,7 +104,7 @@ Class ConfigException
-
public abstract class ConfigException
extends RuntimeException
+
public abstract class ConfigException
extends RuntimeException
implements Serializable

@@ -393,6 +393,9 @@ public + @@ -182,6 +182,15 @@ Contains static methods for creating +static void +invalidateCaches() + +
+          Reloads any cached configs, picking up changes to system properties for + example. + + + static Config load() @@ -758,7 +767,9 @@ public static load("application") in most cases. This configuration should be used by libraries and frameworks unless an application provides a different one.

- This method may return a cached singleton. + This method may return a cached singleton so will not see changes to + system properties or config files. (Use invalidateCaches() to + force it to reload.)

If the system properties config.resource, config.file, or config.url are set, then the @@ -954,6 +965,35 @@ public static

+invalidateCaches

+
+public static void invalidateCaches()
+
+
Reloads any cached configs, picking up changes to system properties for + example. Because a Config is immutable, anyone with a reference + to the old configs will still have the same outdated objects. However, + new calls to load() or defaultOverrides() or + defaultReference() may return a new object. +

+ This method is primarily intended for use in unit tests, for example, + that may want to update a system property then confirm that it's used + correctly. In many cases, use of this method may indicate there's a + better way to set up your code. +

+ Caches may be reloaded immediately or lazily; once you call this method, + the reload can occur at any time, even during the invalidation process. + So FIRST make the changes you'd like the caches to notice, then SECOND + call this method to invalidate caches. Don't expect that invalidating, + making changes, then calling load(), will work. Make changes + before you invalidate. +

+

+
+
+
+
+

empty

@@ -996,16 +1036,19 @@ public static System.getProperties(), parsed and converted as with
- parseProperties(java.util.Properties, com.typesafe.config.ConfigParseOptions). This method can return a global immutable
- singleton, so it's preferred over parsing system properties yourself.
-
+ parseProperties(java.util.Properties, com.typesafe.config.ConfigParseOptions).
+ 

+ This method can return a global immutable singleton, so it's preferred + over parsing system properties yourself.

load(java.lang.String) will include the system properties as overrides already, as will defaultReference() and defaultOverrides().

Because this returns a singleton, it will not notice changes to system - properties made after the first time this method is called. + properties made after the first time this method is called. Use + invalidateCaches() to force the singleton to reload if you + modify system properties.

diff --git a/latest/api/com/typesafe/config/ConfigIncludeContext.html b/latest/api/com/typesafe/config/ConfigIncludeContext.html index e8e1177c..fb7c3561 100644 --- a/latest/api/com/typesafe/config/ConfigIncludeContext.html +++ b/latest/api/com/typesafe/config/ConfigIncludeContext.html @@ -2,12 +2,12 @@ - + ConfigIncludeContext - + diff --git a/latest/api/com/typesafe/config/ConfigIncluder.html b/latest/api/com/typesafe/config/ConfigIncluder.html index 95df3acd..a97528a8 100644 --- a/latest/api/com/typesafe/config/ConfigIncluder.html +++ b/latest/api/com/typesafe/config/ConfigIncluder.html @@ -2,12 +2,12 @@ - + ConfigIncluder - + diff --git a/latest/api/com/typesafe/config/ConfigIncluderClasspath.html b/latest/api/com/typesafe/config/ConfigIncluderClasspath.html index 215c1755..c17a4a31 100644 --- a/latest/api/com/typesafe/config/ConfigIncluderClasspath.html +++ b/latest/api/com/typesafe/config/ConfigIncluderClasspath.html @@ -2,12 +2,12 @@ - + ConfigIncluderClasspath - + diff --git a/latest/api/com/typesafe/config/ConfigIncluderFile.html b/latest/api/com/typesafe/config/ConfigIncluderFile.html index 133aac86..58063b43 100644 --- a/latest/api/com/typesafe/config/ConfigIncluderFile.html +++ b/latest/api/com/typesafe/config/ConfigIncluderFile.html @@ -2,12 +2,12 @@ - + ConfigIncluderFile - + diff --git a/latest/api/com/typesafe/config/ConfigIncluderURL.html b/latest/api/com/typesafe/config/ConfigIncluderURL.html index d0e4b7af..4c0b56aa 100644 --- a/latest/api/com/typesafe/config/ConfigIncluderURL.html +++ b/latest/api/com/typesafe/config/ConfigIncluderURL.html @@ -2,12 +2,12 @@ - + ConfigIncluderURL - + diff --git a/latest/api/com/typesafe/config/ConfigList.html b/latest/api/com/typesafe/config/ConfigList.html index 8b5958f4..c6841fe7 100644 --- a/latest/api/com/typesafe/config/ConfigList.html +++ b/latest/api/com/typesafe/config/ConfigList.html @@ -2,12 +2,12 @@ - + ConfigList - + diff --git a/latest/api/com/typesafe/config/ConfigMergeable.html b/latest/api/com/typesafe/config/ConfigMergeable.html index 1f25f10c..7cefd65d 100644 --- a/latest/api/com/typesafe/config/ConfigMergeable.html +++ b/latest/api/com/typesafe/config/ConfigMergeable.html @@ -2,12 +2,12 @@ - + ConfigMergeable - + diff --git a/latest/api/com/typesafe/config/ConfigObject.html b/latest/api/com/typesafe/config/ConfigObject.html index 759d9cc7..f1f95d58 100644 --- a/latest/api/com/typesafe/config/ConfigObject.html +++ b/latest/api/com/typesafe/config/ConfigObject.html @@ -2,12 +2,12 @@ - + ConfigObject - + diff --git a/latest/api/com/typesafe/config/ConfigOrigin.html b/latest/api/com/typesafe/config/ConfigOrigin.html index 4530add5..f8800bd5 100644 --- a/latest/api/com/typesafe/config/ConfigOrigin.html +++ b/latest/api/com/typesafe/config/ConfigOrigin.html @@ -2,12 +2,12 @@ - + ConfigOrigin - + diff --git a/latest/api/com/typesafe/config/ConfigParseOptions.html b/latest/api/com/typesafe/config/ConfigParseOptions.html index 791caebf..3ad21c3b 100644 --- a/latest/api/com/typesafe/config/ConfigParseOptions.html +++ b/latest/api/com/typesafe/config/ConfigParseOptions.html @@ -2,12 +2,12 @@ - + ConfigParseOptions - + diff --git a/latest/api/com/typesafe/config/ConfigParseable.html b/latest/api/com/typesafe/config/ConfigParseable.html index 38082765..51ba6d7c 100644 --- a/latest/api/com/typesafe/config/ConfigParseable.html +++ b/latest/api/com/typesafe/config/ConfigParseable.html @@ -2,12 +2,12 @@ - + ConfigParseable - + diff --git a/latest/api/com/typesafe/config/ConfigRenderOptions.html b/latest/api/com/typesafe/config/ConfigRenderOptions.html index 83454429..7f7aa4ac 100644 --- a/latest/api/com/typesafe/config/ConfigRenderOptions.html +++ b/latest/api/com/typesafe/config/ConfigRenderOptions.html @@ -2,12 +2,12 @@ - + ConfigRenderOptions - + @@ -161,6 +161,14 @@ Class ConfigRenderOptions  boolean +getJson() + +
+          Returns whether the options enable JSON. + + + + boolean getOriginComments()
@@ -185,11 +193,27 @@ Class ConfigRenderOptions  ConfigRenderOptions +setJson(boolean value) + +
+          Returns options with JSON toggled. + + + + ConfigRenderOptions setOriginComments(boolean value)
          Returns options with origin comments toggled. + + + String +toString() + +
+            +   @@ -197,7 +221,7 @@ Class ConfigRenderOptions - +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  @@ -284,7 +308,7 @@ public ConfigValue.origin() of that setting's value. For example these comments might tell you which file a setting comes from. - +

setOriginComments() controls only these autogenerated "origin of this setting" comments, to toggle regular comments use @@ -341,6 +365,53 @@ public boolean getFormatted()

Returns:
true if comments should be rendered
+
+ +

+setJson

+
+public ConfigRenderOptions setJson(boolean value)
+
+
Returns options with JSON toggled. JSON means that HOCON extensions + (omitting commas, quotes for example) won't be used. However, whether to + use comments is controlled by the separate setComments(boolean) + and setOriginComments(boolean) options. So if you enable + comments you will get invalid JSON despite setting this to true. +

+

+
Parameters:
value - true to include non-JSON extensions in the render +
Returns:
options with requested setting for JSON
+
+
+
+ +

+getJson

+
+public boolean getJson()
+
+
Returns whether the options enable JSON. This method is mostly used by + the config lib internally, not by applications. +

+

+ +
Returns:
true if only JSON should be rendered
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+

diff --git a/latest/api/com/typesafe/config/ConfigResolveOptions.html b/latest/api/com/typesafe/config/ConfigResolveOptions.html index 54114b47..104f4b06 100644 --- a/latest/api/com/typesafe/config/ConfigResolveOptions.html +++ b/latest/api/com/typesafe/config/ConfigResolveOptions.html @@ -2,12 +2,12 @@ - + ConfigResolveOptions - + diff --git a/latest/api/com/typesafe/config/ConfigSyntax.html b/latest/api/com/typesafe/config/ConfigSyntax.html index e84c492a..3d183f88 100644 --- a/latest/api/com/typesafe/config/ConfigSyntax.html +++ b/latest/api/com/typesafe/config/ConfigSyntax.html @@ -2,12 +2,12 @@ - + ConfigSyntax - + diff --git a/latest/api/com/typesafe/config/ConfigUtil.html b/latest/api/com/typesafe/config/ConfigUtil.html index ec3764ce..7eaf962c 100644 --- a/latest/api/com/typesafe/config/ConfigUtil.html +++ b/latest/api/com/typesafe/config/ConfigUtil.html @@ -2,12 +2,12 @@ - + ConfigUtil - + diff --git a/latest/api/com/typesafe/config/ConfigValue.html b/latest/api/com/typesafe/config/ConfigValue.html index 063f6170..214e5666 100644 --- a/latest/api/com/typesafe/config/ConfigValue.html +++ b/latest/api/com/typesafe/config/ConfigValue.html @@ -2,12 +2,12 @@ - + ConfigValue - + diff --git a/latest/api/com/typesafe/config/ConfigValueFactory.html b/latest/api/com/typesafe/config/ConfigValueFactory.html index ad461818..c75e473e 100644 --- a/latest/api/com/typesafe/config/ConfigValueFactory.html +++ b/latest/api/com/typesafe/config/ConfigValueFactory.html @@ -2,12 +2,12 @@ - + ConfigValueFactory - + diff --git a/latest/api/com/typesafe/config/ConfigValueType.html b/latest/api/com/typesafe/config/ConfigValueType.html index 7cd0e106..ef64ec64 100644 --- a/latest/api/com/typesafe/config/ConfigValueType.html +++ b/latest/api/com/typesafe/config/ConfigValueType.html @@ -2,12 +2,12 @@ - + ConfigValueType - + diff --git a/latest/api/com/typesafe/config/package-frame.html b/latest/api/com/typesafe/config/package-frame.html index 291b461c..f9332159 100644 --- a/latest/api/com/typesafe/config/package-frame.html +++ b/latest/api/com/typesafe/config/package-frame.html @@ -2,12 +2,12 @@ - + com.typesafe.config - + diff --git a/latest/api/com/typesafe/config/package-summary.html b/latest/api/com/typesafe/config/package-summary.html index 054e55d7..474a4b66 100644 --- a/latest/api/com/typesafe/config/package-summary.html +++ b/latest/api/com/typesafe/config/package-summary.html @@ -2,12 +2,12 @@ - + com.typesafe.config - + diff --git a/latest/api/com/typesafe/config/package-tree.html b/latest/api/com/typesafe/config/package-tree.html index 60da9046..6406d5b1 100644 --- a/latest/api/com/typesafe/config/package-tree.html +++ b/latest/api/com/typesafe/config/package-tree.html @@ -2,12 +2,12 @@ - + com.typesafe.config Class Hierarchy - + @@ -91,7 +91,8 @@ Class Hierarchy