java.lang.Object
de.agilecoders.wicket.jquery.CombinableConfig
- All Implemented Interfaces:
Config,Serializable,IClusterable
- Direct Known Subclasses:
AbstractConfig,ConfigWithFallback
- Author:
- Michael Haitz
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncombines this configuration with given ones.withFallback(Config fallback) uses given config as fallback if a key isn't set in this config.
-
Constructor Details
-
CombinableConfig
protected CombinableConfig()Construct.
-
-
Method Details
-
withFallback
uses given config as fallback if a key isn't set in this config.- Parameters:
fallback- the fallback configuration- Returns:
- this instance for chaining
-
combine
combines this configuration with given ones. Given configuration doesn't override existing one.- Parameters:
fallbackConfigs- the configurations to combine- Returns:
- this instance for chaining
-