[−][src]Trait scf_core::manager::ConfigurationManager
Required methods
fn get_config(&self) -> &dyn ConfigurationManagerConfig
fn get_properties(&self) -> Vec<Box<dyn RawProperty>>
the properties created by get_property
fn get_property(&self, config: &dyn RawPropertyConfig) -> Box<dyn RawProperty>
get property value by get_property_value and return a property with the propertyConfig and value
once a property is created, it is kept by the manager and will be auto-update after some configuration source changed
same property config in, same property out, 1 key 1 property
fn get_property_value(
&self,
config: &dyn RawPropertyConfig
) -> Option<Box<dyn Value>>
&self,
config: &dyn RawPropertyConfig
) -> Option<Box<dyn Value>>
get property value in each configuration source by source priority
if non-None value is got by a source ConfigurationSource::get_property_value if PropertyConfig::get_value_filter() is None, return the non-None value, if PropertyConfig::get_value_filter() is non-None, apply the filter to the non-None value, if the new value returned by the filter is non-None, return the new value. otherwise, go to the next lower priority source
after handling all sources, no non-None value got, return None
fn add_raw_change_listener(&self, listener: RawPropertyChangeListener)
listeners to the property change, notified once property changed
fn clone_boxed(&self) -> Box<dyn ConfigurationManager>
fn to_boxed(self) -> Box<dyn ConfigurationManager>
Implementors
impl ConfigurationManager for DefaultConfigurationManager
[src]
fn get_config(&self) -> &dyn ConfigurationManagerConfig
[src]
fn get_properties(&self) -> Vec<Box<dyn RawProperty>>
[src]
fn get_property(&self, config: &dyn RawPropertyConfig) -> Box<dyn RawProperty>
[src]
fn get_property_value(
&self,
config: &dyn RawPropertyConfig
) -> Option<Box<dyn Value>>
[src]
&self,
config: &dyn RawPropertyConfig
) -> Option<Box<dyn Value>>