Interface ConfigAware<T extends ConfigBean>
- All Superinterfaces:
HandleAware
- All Known Implementing Classes:
AbstractConfigurable
,AbstractConfigurableService
,Application
,ConfigSerialNumberProvider
,Device
,SystemApplication
Interface for objects that contain a
ConfigBean
. This bean
can then be updated by the ConfigService
.- Since:
- 1.0
- Version:
- 2022-08-30
-
Method Summary
Modifier and TypeMethodDescriptionGets the current config bean so that it can be updated.default void
onConfigChanged
(BeanChanges changes) Called any time the configuration is changed after the initialonConfigSet()
is called.default void
onConfigSet
(BeanChanges changes) Called the first time the configuration is set.void
Sets the initial config bean.Methods inherited from interface com.tccc.kos.commons.core.service.handle.HandleAware
addHandleChild, getHandle, getName, getPath
-
Method Details
-
getConfig
T getConfig()Gets the current config bean so that it can be updated.- Returns:
- the config bean
-
setConfig
Sets the initial config bean. -
onConfigSet
Called the first time the configuration is set. Default behavior calls theonConfigChanged()
method.- Parameters:
changes
- the changes to the bean
-
onConfigChanged
Called any time the configuration is changed after the initialonConfigSet()
is called. IfonConfigSet()
is not overridden, the default implementation calls this method when setting the initial configuration.- Parameters:
changes
- the changes to the bean
-