config With Fallback
Creates a delegated read-only property that can be used in ConfigAware objects. The name of the property is the key that is used during configuration lookup. If there is no such property, the value of the supplied fallbackProperty is also considered before using the defaultValue. The value of the property is evaluated only once.
This method is only intended to be used in migration scenarios where there is no way to update all configuration files immediately.
Parameters
The reference to the configuration key to fall back to. This property must be defined as a configuration delegate.
Creates a delegated read-only property that can be used in ConfigAware objects. The name of the property is the key that is used during configuration lookup. If there is no such property, the value of the supplied fallbackProperty is also considered before using the defaultValue. The value of the property is evaluated and transformed only once.
This method is only intended to be used in migration scenarios where there is no way to update all configuration files immediately.
Parameters
The reference to the configuration key to fall back to. This property must be defined as a configuration delegate.
a function that transforms the value from the configuration (or the default) into its final value.