|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public static interface ServerConfigurationService.ConfigurationListener
Allows a service to be notified when configuration settings are changed,
It is up to the implementor to ignore the changes they do not care about.
Filter on the ServerConfigurationService.ConfigurationListener.BlockingConfigItem.getName().
NOTE: this does NOT include any changes which happen during the initial properties file loading
| Nested Class Summary | |
|---|---|
static class |
ServerConfigurationService.ConfigurationListener.BlockingConfigItem
This is a special marker class that is used in the ServerConfigurationService.ConfigurationListener,
returning this indicates that the config change should stop processing the change and retain the original value |
| Method Summary | |
|---|---|
void |
changed(ServerConfigurationService.ConfigItem configItem,
ServerConfigurationService.ConfigItem previousConfigItem)
This will be called each time a ServerConfigurationService.ConfigurationListener.BlockingConfigItem is changed,
this will be called after the item has been changed and will reflect the new values
for this config item
NOTE: it does NOT include the the initial registration of that config item and
initial startup of the ServerConfigurationService |
ServerConfigurationService.ConfigItem |
changing(ServerConfigurationService.ConfigItem currentConfigItem,
ServerConfigurationService.ConfigItem newConfigItem)
This will be called each time a ServerConfigurationService.ConfigurationListener.BlockingConfigItem is changed,
this will be called before the item has been changed and will reflect
the current values for this config item. |
| Method Detail |
|---|
ServerConfigurationService.ConfigItem changing(ServerConfigurationService.ConfigItem currentConfigItem,
ServerConfigurationService.ConfigItem newConfigItem)
ServerConfigurationService.ConfigurationListener.BlockingConfigItem is changed,
this will be called before the item has been changed and will reflect
the current values for this config item.
NOTE: the default implementation of this should be to just return null
if processing should be allowed to continue unimpeded
NOTE: it does NOT include the the initial registration of that config item and
initial startup of the ServerConfigurationService
currentConfigItem - the ServerConfigurationService.ConfigurationListener.BlockingConfigItem which is changing (will be null if item is new),
this item should not be changed by this methodnewConfigItem - the ServerConfigurationService.ConfigurationListener.BlockingConfigItem which will become the new one
ServerConfigurationService.ConfigurationListener.BlockingConfigItem to block the change from happening (change will be discarded and processing will stop)
OR the modified newConfigItem item which will be used as the new config value
void changed(ServerConfigurationService.ConfigItem configItem,
ServerConfigurationService.ConfigItem previousConfigItem)
ServerConfigurationService.ConfigurationListener.BlockingConfigItem is changed,
this will be called after the item has been changed and will reflect the new values
for this config item
NOTE: it does NOT include the the initial registration of that config item and
initial startup of the ServerConfigurationService
configItem - the ServerConfigurationService.ConfigurationListener.BlockingConfigItem which changed,
this item should not be changed by this methodpreviousConfigItem - the ServerConfigurationService.ConfigurationListener.BlockingConfigItem before the change (will be null if item is new)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||