Class AbstractConfigurableService<T extends ConfigBean>
java.lang.Object
com.tccc.kos.commons.util.ready.ReadyBean
com.tccc.kos.commons.core.service.AbstractService
com.tccc.kos.commons.core.service.AbstractConfigurableService<T>
- All Implemented Interfaces:
CtxEventListener
,ConfigAware<T>
,ContextHandleAware
,HandleAware
,Ready
,ReadyListener
public abstract class AbstractConfigurableService<T extends ConfigBean>
extends AbstractService
implements ConfigAware<T>
Abstract base class for all services that are configurable.
It extends
AbstractService
, which provides a great deal of base functionality.
This class simply adds ConfigAware
support.- Since:
- 1.0
- Version:
- 2022-09-12
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.tccc.kos.commons.core.service.AbstractService
getHandle, getHandlePrefix
Methods inherited from class com.tccc.kos.commons.util.ready.ReadyBean
getReady, onBeanReady, onDependenciesReady
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.tccc.kos.commons.core.service.config.ConfigAware
onConfigChanged, onConfigSet
Methods inherited from interface com.tccc.kos.commons.core.context.CtxEventListener
onCtxAutowiringCompleted, onCtxDestroyed, onCtxPhaseCompleted
Methods inherited from interface com.tccc.kos.commons.core.service.handle.HandleAware
addHandleChild, getHandle, getName, getPath
Methods inherited from interface com.tccc.kos.commons.util.ready.ReadyListener
onDependenciesGroupReady
-
Constructor Details
-
AbstractConfigurableService
public AbstractConfigurableService()
-
-
Method Details
-
getConfig
Retrieves the configuration bean.- Specified by:
getConfig
in interfaceConfigAware<T extends ConfigBean>
- Returns:
- the config bean
-
setConfig
Sets the configuration bean.- Specified by:
setConfig
in interfaceConfigAware<T extends ConfigBean>
- Parameters:
config
- the config bean
-