pub trait RawProperty:
Value
+ Send
+ Sync {
// Required methods
fn get_raw_config(&self) -> &dyn RawPropertyConfig;
fn get_raw_value(&self) -> Option<Box<dyn Value>>;
fn get_source(&self) -> Option<Box<dyn ConfigurationSource>>;
fn add_raw_change_listener(&self, listener: RawPropertyChangeListener);
fn clone_boxed(&self) -> Box<dyn RawProperty>;
fn to_boxed(self) -> Box<dyn RawProperty>;
fn as_trait_ref(&self) -> &dyn RawProperty;
fn as_trait_mut(&mut self) -> &mut dyn RawProperty;
}Required Methods§
fn get_raw_config(&self) -> &dyn RawPropertyConfig
Sourcefn get_raw_value(&self) -> Option<Box<dyn Value>>
fn get_raw_value(&self) -> Option<Box<dyn Value>>
property value, if not configured or no valid value, default to defaultValue Of PropertyConfig
Sourcefn get_source(&self) -> Option<Box<dyn ConfigurationSource>>
fn get_source(&self) -> Option<Box<dyn ConfigurationSource>>
which configuration source is actually used return None if using default value
Sourcefn add_raw_change_listener(&self, listener: RawPropertyChangeListener)
fn add_raw_change_listener(&self, listener: RawPropertyChangeListener)
listeners to the value change, notified once value changed