public class ServerConfigManager extends ConfigManager
activeConfigs, backupConfigs, cfgDefs, dirtyConfigs, widgetCfg
Constructor and Description |
---|
ServerConfigManager()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addDirtyConfig(WidgetConfig cfg,
java.lang.String field)
Register the specified field in the configuration for the specified widget ID as being
dirty.
|
protected void |
applyConfigUpdates(GenericWidget widget,
WidgetConfigUpdates cfgUpdate)
Update the local active and backup configurations with the received changes.
|
protected boolean |
isRegisteredWidget(WidgetId id)
Check if the given ID is associated with a registered widget.
|
(package private) ConfigOwner<?> |
resolveConfigOwner(WidgetId widgetId)
The method attempts to resolve a
ConfigOwner reference from
the widget widgetId . |
boolean |
trackConfig(WidgetConfig cfg)
Determine if the specified config instance can be tracked.
|
addWidgetConfig, addWidgetConfig, addWidgetConfiguration, duplicate, getActiveConfig, getBackupConfig, getConfigDef, getConfigDef, getConfigUpdates, getDynamicConfig, getInstance, notifyWidgetDestroyed, registerExternalWidgetConfigs, removeWidgetConfig, replaceConfig, resolveWidgetConfig, resolveWidgetConfig, setDynamicConfig, setTracking, setWidgetConfig, syncConfigChanges
public boolean trackConfig(WidgetConfig cfg)
Sever-side does not track the config changes.
trackConfig
in class ConfigManager
cfg
- The WidgetConfig
instace which needs to be tracked.public void addDirtyConfig(WidgetConfig cfg, java.lang.String field)
Sever-side does not track the config changes, so this is a no-op.
addDirtyConfig
in class ConfigManager
cfg
- The widget config.field
- The changed field.ConfigOwner<?> resolveConfigOwner(WidgetId widgetId)
ConfigOwner
reference from
the widget widgetId
.resolveConfigOwner
in class ConfigManager
widgetId
- Widget Id.ConfigOwner
reference or null
if
such cannot be find.protected boolean isRegisteredWidget(WidgetId id)
isRegisteredWidget
in class ConfigManager
id
- The widget ID.true
if a widget exists in the registry, with the given ID.protected void applyConfigUpdates(GenericWidget widget, WidgetConfigUpdates cfgUpdate)
widget
- Target widget.cfgUpdate
- The container with the config updates for a given widget ID.