|
10Duke Java Core
|
A configuration structure base class that supports implementation of a configuration fallback stack.
To terminate the recursion set the fallback configuration to a non recursive implementation.
| <C> | Type of configuration used in the fallback stack. |
Public Member Functions | |
| AbstractConfigWithFallback (final C config, final C fallback) | |
| Initializes a new instance of this class with the given configuration and fallback instances. | |
| AbstractConfigWithFallback | withConfig (final C config) |
| Sets the configuration instance to use as priority one. | |
| AbstractConfigWithFallback | withFallbackConfig (final C config) |
| Sets the configuration instance to use as a fallback. | |
Public Member Functions inherited from tenduke.sdk.core.model.config.Configuration | |
| < U > U | unwrap () |
| Unwraps the underlying implementation and returns it to the caller. | |
| tenduke.sdk.core.model.config.AbstractConfigWithFallback< C extends Configuration >.AbstractConfigWithFallback | ( | final C | config, |
| final C | fallback ) |
Initializes a new instance of this class with the given configuration and fallback instances.
| config | The first level configuration instance. |
| fallback | The fallback configuration to use if the first level configuration does not provide a value. |
| AbstractConfigWithFallback tenduke.sdk.core.model.config.AbstractConfigWithFallback< C extends Configuration >.withConfig | ( | final C | config | ) |
Sets the configuration instance to use as priority one.
| config | The priority configuration to use first. |
| AbstractConfigWithFallback tenduke.sdk.core.model.config.AbstractConfigWithFallback< C extends Configuration >.withFallbackConfig | ( | final C | config | ) |
Sets the configuration instance to use as a fallback.
| config | The fallback configuration to use only if the configuration with priority does not provide a value. Note: a not null value is required. |