Get a configuration under the string format
Get a configuration under the string format
Key of the configuration
Get a configuration under the string format
Get a configuration under the string format
Key of the configuration
Get a configuration and convert to the given type, return a default value if it's not set
Get a configuration and convert to the given type, return a default value if it's not set
define the type of output
Key of the configuration
Get a configuration and convert to the given type, return None if it's not set
Get a configuration and convert to the given type, return None if it's not set
define the type of output
Key of the configuration
implicit converter
Conf is a class that holds data of configuration. Internally, Conf use a ConcurrentHashMap for saving the configuration arguments.
We can instantiate a Conf directly from a Scala Map or a Config from the typesafe config library.
We can also instantiate manually
Configuration arguments can be retrieved by calling the get() method. Conf provide also several implicit converters that handle the type conversion.
For example: