pip_services3_container.config.ContainerConfig module¶
pip_services3_container.config.ContainerConfig¶
Container configuration implementation.
- copyright
Conceptual Vision Consulting LLC 2018-2019, see AUTHORS for more details.
- license
MIT, see LICENSE for more details.
-
class
pip_services3_container.config.ContainerConfig.
ContainerConfig
(components: Sequence[pip_services3_container.config.ComponentConfig.ComponentConfig] = None)¶ Bases:
list
Container configuration defined as a list of component configurations.
-
static
from_config
(config: pip_services3_commons.config.ConfigParams.ConfigParams) → pip_services3_container.config.ContainerConfig.ContainerConfig¶ Creates a new
ContainerConfig
object based on configuration parameters. Each section in the configuration parameters is converted into a component configuration.- Parameters
config – an object with key-value pairs used to initialize a new
ContainerConfig
.- Returns
a new
ContainerConfig
object.
-
static
from_value
(value: Any) → pip_services3_container.config.ContainerConfig.ContainerConfig¶ Creates a new
ContainerConfig
object filled with key-value pairs from specified object. The value is converted intoConfigParams
object which is used to create the object.- Parameters
value – an object with key-value pairs used to initialize a new
ContainerConfig
.- Returns
a new
ContainerConfig
object.
-
static