pub trait ConfigurationBuilder {
    fn properties(&self) -> &HashMap<String, Box<dyn Any>>;
    fn sources(&self) -> &[Box<dyn ConfigurationSource>];
    fn add(&mut self, source: Box<dyn ConfigurationSource>);
    fn build(&self) -> Box<dyn ConfigurationRoot>;
}
Expand description

Defines the behavior used to build an application configuration.

Required Methods

Gets a read-only key/value collection that can be used to share data between the builder and the registered sources.

Gets sources used to obtain configuration values.

Adds a new configuration source.

Arguments

Builds configuration with the keys and values from the set of registered sources.

Implementors