Converts the configuration path to the given type.
Converts the configuration path to the given type. If the requested type is not supported, an exception is thrown. Override this method to support custom types.
Looks up a value in the configuration, and if present returns it, otherwise returns the default value provided.
Looks up a value in the configuration, and if present returns it, otherwise returns the default value provided.
Looks up a single value of a specific type in configuration.
Looks up a single value of a specific type in configuration. If the configuration key does not exist, an exception is thrown. If the requested type is not supported, an exception is thrown.
Attempts to determine the path to an executable, first by looking it up in config, and if that fails, by attempting to locate it on the system path.
Attempts to determine the path to an executable, first by looking it up in config, and if that fails, by attempting to locate it on the system path. If both fail then an exception is raised.
the configuration path to look up
the default name of the executable
An absolute path to the executable to use
Attempts to determine the path to an executable.
Attempts to determine the path to an executable.
The config path is assumed to be the directory containing the executable. If the config lookup fails, then we attempt to locate it on the system path. If both fail then an exception is raised. No validation is performed that the executable actually exists at the returned path.
the configuration path to look up, representing the directory containing the executable
the default name of the executable
optionally a sub-directory within the bin-directory containing the executable.
An absolute path to the executable to use
Allows initialization with a custom configuration.
Allows initialization with a custom configuration.
Initialize the configuration by loading configuration from the supplied path, and combining it with configuration information from the system properties (higher priority), application.conf and reference.conf files (lower priority).
Optionally accesses a configuration value.
Optionally accesses a configuration value. If the value is not present in the configuration a None will be returned, else a Some(T) of the appropriate type.
Returns a sorted set of all keys that have been requested up to this point in time.
Grabs the config key "PATH" which, if not defined in config will default to the environment variable PATH, splits it on the path separator and returns it as a Seq[String]
Grabs the config key "PATH" which, if not defined in config will default to the environment variable PATH, splits it on the path separator and returns it as a Seq[String]
Companion object to the Configuration trait that keeps track of all configuration keys that have been requested so that they can be reported later if desired.