mirror of
https://github.com/lightbend/config.git
synced 2025-01-30 14:10:08 +08:00
fix api doc note about setUseSystemProperties doing nothing
This is a mess, I earlier added a note to the README about needing to fix it.
This commit is contained in:
parent
a840c2599d
commit
9af5a67d6c
@ -57,16 +57,17 @@ public final class ConfigFactory {
|
|||||||
/**
|
/**
|
||||||
* Like {@link #load(String)} but allows you to specify parse and resolve
|
* Like {@link #load(String)} but allows you to specify parse and resolve
|
||||||
* options.
|
* options.
|
||||||
*
|
|
||||||
* <p>
|
* <p>
|
||||||
* To be aware of: using
|
* To be aware of: using
|
||||||
* {@link ConfigResolveOptions#setUseSystemProperties(boolean)
|
* {@link ConfigResolveOptions#setUseSystemProperties(boolean)
|
||||||
* setUseSystemProperties(false)} with this method has no meaningful effect,
|
* setUseSystemProperties(false)} with this method has little effect,
|
||||||
* because the system properties are merged into the config as overrides
|
* because the system properties are merged into the config as overrides
|
||||||
* anyway. <code>setUseSystemProperties</code> affects whether to fall back
|
* anyway. <code>setUseSystemProperties</code> affects whether to fall back
|
||||||
* to system properties when they are not found in the config, but with
|
* to system properties when they are not found in the config, but with
|
||||||
* <code>load()</code>, they will be in the config.
|
* <code>load()</code>, they will be in the config. There is one situation
|
||||||
*
|
* where <code>setUseSystemProperties(false)</code> comes into play, which
|
||||||
|
* is that files included into another file may find the system property
|
||||||
|
* fallbacks but not the overrides.
|
||||||
* @param resourceBasename
|
* @param resourceBasename
|
||||||
* the classpath resource name with optional extension
|
* the classpath resource name with optional extension
|
||||||
* @param parseOptions
|
* @param parseOptions
|
||||||
@ -99,15 +100,17 @@ public final class ConfigFactory {
|
|||||||
/**
|
/**
|
||||||
* Like {@link #load(Config)} but allows you to specify
|
* Like {@link #load(Config)} but allows you to specify
|
||||||
* {@link ConfigResolveOptions}.
|
* {@link ConfigResolveOptions}.
|
||||||
*
|
|
||||||
* <p>
|
* <p>
|
||||||
* To be aware of: using
|
* To be aware of: using
|
||||||
* {@link ConfigResolveOptions#setUseSystemProperties(boolean)
|
* {@link ConfigResolveOptions#setUseSystemProperties(boolean)
|
||||||
* setUseSystemProperties(false)} with this method has no meaningful effect,
|
* setUseSystemProperties(false)} with this method has little effect,
|
||||||
* because the system properties are merged into the config as overrides
|
* because the system properties are merged into the config as overrides
|
||||||
* anyway. <code>setUseSystemProperties</code> affects whether to fall back
|
* anyway. <code>setUseSystemProperties</code> affects whether to fall back
|
||||||
* to system properties when they are not found in the config, but with
|
* to system properties when they are not found in the config, but with
|
||||||
* <code>load()</code>, they will be in the config.
|
* <code>load()</code>, they will be in the config. There is one situation
|
||||||
|
* where <code>setUseSystemProperties(false)</code> comes into play, which
|
||||||
|
* is that files included into another file may find the system property
|
||||||
|
* fallbacks but not the overrides.
|
||||||
*
|
*
|
||||||
* @param config
|
* @param config
|
||||||
* the application's portion of the configuration
|
* the application's portion of the configuration
|
||||||
|
Loading…
Reference in New Issue
Block a user