public class CockpitModuleConfigurationContextStrategy extends Object implements CockpitConfigurationContextStrategy
EMPTY_PARENT_CONTEXT| Constructor and Description |
|---|
CockpitModuleConfigurationContextStrategy() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getInitialModules() |
protected List<String> |
getModuleNames() |
List<String> |
getParentContexts(String context)
Gets parent values for provided one.
|
boolean |
isResettable()
Checks if value of strategy's attribute should be reset up to original value after match.
|
void |
setCockpitModuleConnector(CockpitModuleConnector cockpitModuleConnector) |
void |
setInitialModules(List<String> initialModules) |
boolean |
valueMatches(String contextValue,
String value)
Checks if provided value matches the one defined in configuration context.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfigurationCacheKeypublic CockpitModuleConfigurationContextStrategy()
public boolean isResettable()
CockpitConfigurationContextStrategySearch algorithm after a match looks for parent contexts. There is a possibility, that some of attributes should be reset to original value before looking for parents (i.e. module).
isResettable in interface CockpitConfigurationContextStrategytrue if value should be resetpublic List<String> getParentContexts(String context)
CockpitConfigurationContextStrategygetParentContexts in interface CockpitConfigurationContextStrategycontext - value, which parent is requestedpublic boolean valueMatches(String contextValue, String value)
CockpitConfigurationContextStrategyvalueMatches in interface CockpitConfigurationContextStrategycontextValue - value defined in configuration contextvalue - value to be checkedtrue if provided value matches the one defined in configuration contextpublic void setCockpitModuleConnector(CockpitModuleConnector cockpitModuleConnector)
Copyright © 2018. All rights reserved.