pip_services3_commons.config.OptionsResolver module
pip_services3_commons.config.OptionsResolver
Options resolver implementation
- copyright
Conceptual Vision Consulting LLC 2018-2019, see AUTHORS for more details.
- license
MIT, see LICENSE for more details.
-
class
pip_services3_commons.config.OptionsResolver.
OptionsResolver
Bases:
object
A helper class to parameters from “options” configuration section.
Example:
config = ConfigParams.fromTuples( ... "options.param1", "ABC", "options.param2", 123) options = OptionsResolver.resolve(config)
-
static
resolve
(config: pip_services3_commons.config.ConfigParams.ConfigParams, config_as_default: bool = False) → pip_services3_commons.config.ConfigParams.ConfigParams Resolves an “options” configuration section from component configuration parameters.
- Parameters
config – configuration parameters
config_as_default – (optional) When set true the method returns the entire parameter set when “options” section is not found. Default: false
- Returns
configuration parameters from “options” section
-
static