Trait for conversion between T
and ConfigValue
.
Implicit ConfigConvert instances defined such that they can be overriden by library consumer via a locally defined implementation.
Load a configuration of type Config
from the given Config
Load a configuration of type Config
from the given Config
Load a configuration of type Config
from the given file.
Load a configuration of type Config
from the given file. Note that standard configuration
files are still loaded but can be overridden from the given configuration file
the base namespace from which the configuration should be load
A Success
with the configuration if it is possible to create an instance of type
Config
from the configuration files, else a Failure
with details on why it
isn't possible
Load a configuration of type Config
from the given file.
Load a configuration of type Config
from the given file. Note that standard configuration
files are still loaded but can be overridden from the given configuration file
A Success
with the configuration if it is possible to create an instance of type
Config
from the configuration files, else a Failure
with details on why it
isn't possible
Load a configuration of type Config
from the standard configuration files
Load a configuration of type Config
from the standard configuration files
the base namespace from which the configuration should be load
A Success
with the configuration if it is possible to create an instance of type
Config
from the configuration files, else a Failure
with details on why it
isn't possible
Load a configuration of type Config
from the standard configuration files
Load a configuration of type Config
from the standard configuration files
A Success
with the configuration if it is possible to create an instance of type
Config
from the configuration files, else a Failure
with details on why it
isn't possible
Loads files
in order, allowing values in later files to backstop missing values from prior, and converts them into a Config
.
Loads files
in order, allowing values in later files to backstop missing values from prior, and converts them into a Config
.
This is a convenience method which enables having default configuration which backstops local configuration.
Note: If an element of files
references a file which doesn't exist or can't be read, it will silently be ignored.
Files ordered in decreasing priority containing part or all of a Config
. Must not be empty.
Load a configuration of type Config
from the given Config
, falling back to the default configuration
Load a configuration of type Config
from the given Config
, falling back to the default configuration
Typesafe configuration to load
the base namespace from which the configuration should be load
A Success
with the configuration if it is possible to create an instance of type
Config
from the configuration files, else a Failure
with details on why it
isn't possible
Load a configuration of type Config
from the given Config
, falling back to the default configuration
Load a configuration of type Config
from the given Config
, falling back to the default configuration
Typesafe configuration to load
A Success
with the configuration if it is possible to create an instance of type
Config
from the configuration files, else a Failure
with details on why it
isn't possible
Save the given configuration into a property file
Save the given configuration into a property file
The configuration to save
Where to write the configuration
Override the path if it already exists
Writes the configuration to the output stream and closes the stream
Writes the configuration to the output stream and closes the stream
The configuration to write
The stream in which the configuration should be written