ConfigWrapper
An abstraction for an underlying configuration store. Decouples config delegates from the underlying config framework.
Functions
Adds a default value to be used in absence of a value provided by the client.
Gets the specified Boolean configuration value. If the value is not set or not a valid boolean, the default value provided by addDefault is returned.
Gets the specified List of Boolean configuration value. If the value is not set or not a valid boolean list, the default value provided by addDefault is returned.
Returns the YAML comments above the given path, or an empty list if none.
Gets the specified List of Double configuration value. If the value is not set or not a valid double list, the default value provided by addDefault is returned.
Gets the specified List of Int configuration value. If the value is not set or not a valid integer list, the default value provided by addDefault is returned.
Gets the specified List of Long configuration value. If the value is not set or not a valid long list, the default value provided by addDefault is returned.
Gets the specified List of String configuration value. If the value is not set or not a valid string list, the default value provided by addDefault is returned.
Reloads all configuration values from the underlying config representation, for example from file.
Stores the default values provided by addDefault for any path that has no user provided value. If the underlying config representation does not exist, it is created and initiated with the default values.