public class ConfigProperties
extends java.lang.Object
java.util.Properties object.
See Config.getValue(String, String).| Constructor and Description |
|---|
ConfigProperties(java.util.Properties defaults)
Construct a new instance for existing
java.util.Properties object |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Properties |
resolve(java.util.Properties defaults)
Apply the config override mechanism to all the keys in
java.util.Properties object passed as defaults,
storing the resolved configuration values into a new java.util.Properties object that is returned as a result. |
static void |
resolveAndExportToSystemProperties(java.util.Properties defaults)
Apply the config override mechanism to all the keys in the passed
java.util.Properties object using it
as the final fallback for value resolution. |
java.util.Properties |
resolveTo(java.util.Properties destination)
Apply the config override mechanism to all the keys in
java.util.Properties object used to initialise
this ConfigProperties storing the resolved configuration values to the passed destination object. |
public ConfigProperties(java.util.Properties defaults)
java.util.Properties objectdefaults - A java.util.Properties object that serves as the source of keys, and the final fallback
source for values if no override is found for a config optionpublic java.util.Properties resolveTo(java.util.Properties destination)
java.util.Properties object used to initialise
this ConfigProperties storing the resolved configuration values to the passed destination object.destination - The destination java.util.Properties objectpublic static void resolveAndExportToSystemProperties(java.util.Properties defaults)
java.util.Properties object using it
as the final fallback for value resolution. The resolved config values are set as System properties.defaults - A java.util.Properties object that serves as the source of keys, and the final fallback
source for values if no override is found for a config optionpublic static java.util.Properties resolve(java.util.Properties defaults)
java.util.Properties object passed as defaults,
storing the resolved configuration values into a new java.util.Properties object that is returned as a result.defaults - A java.util.Properties object that serves as the source of keys, and the final fallback
source for values if no override is found for a config optionjava.util.Properties object with resolved configuration valuesCopyright © 2023. All rights reserved.