Navigates through the config to focus on a namespace.
Navigates through the config to focus on a namespace.
the namespace to focus on
a new ConfigSource
focused on the given namespace.
Reads a Config
from this config source.
Reads a Config
from this config source. The returned config is usually unresolved, unless
the source forces it otherwise.
a Config
provided by this source.
Returns a cursor for a ConfigValue
retrieved from this source.
Returns a cursor for a ConfigValue
retrieved from this source.
a cursor for a ConfigValue
retrieved from this source.
Returns a fluent cursor for a ConfigValue
retrieved from this source.
Returns a fluent cursor for a ConfigValue
retrieved from this source.
a fluent cursor for a ConfigValue
retrieved from this source.
Loads a configuration of type A
from this source.
Loads a configuration of type A
from this source.
the type of the config to be loaded
A Right
with the configuration if it is possible to create an instance of type
A
from this source, a Failure
with details on why it isn't possible otherwise
Loads a configuration of type A
from this source.
Loads a configuration of type A
from this source. If it is not possible to create an
instance of A
, this method throws a ConfigReaderException
.
the type of the config to be loaded
The configuration of type A
loaded from this source.
Returns a ConfigObjectSource
that provides the same config as this one, but falls back to
providing an empty config when the source cannot be read.
Returns a ConfigObjectSource
that provides the same config as this one, but falls back to
providing an empty config when the source cannot be read. It can be used together with
.withFallback
to specify optional config files to be merged (like reference.conf
).
a new ConfigObjectSource
that provides the same config as this one, but falls back
to an empty config if it cannot be read.
Applies a function f
if this source returns a failure, returning an alternative config
source in those cases.
Applies a function f
if this source returns a failure, returning an alternative config
source in those cases.
the function to apply if this source returns a failure
a new ConfigObjectSource
that provides an alternative config in case this source
fails
Retrieves a ConfigValue
from this source.
Retrieves a ConfigValue
from this source. This forces the config to be resolved, if needed.
a ConfigValue
retrieved from this source.
Merges this source with another one, with the latter being used as a fallback (e.g.
Merges this source with another one, with the latter being used as a fallback (e.g. the source on which this method is called takes priority). Both sources are required to produce a config object successfully.
the config source to use as fallback
a new ConfigObjectSource
that loads configs from both sources and uses cs
as a
fallback for this source
A
ConfigSource
which is guaranteed to generate config objects (maps) as root values.