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, getHandlePrefixMethods inherited from class com.tccc.kos.commons.util.ready.ReadyBean
getReady, onBeanReady, onDependenciesReadyMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.tccc.kos.commons.core.service.config.ConfigAware
onConfigChanged, onConfigSetMethods inherited from interface com.tccc.kos.commons.core.context.CtxEventListener
onCtxAutowiringCompleted, onCtxDestroyed, onCtxPhaseCompletedMethods inherited from interface com.tccc.kos.commons.core.service.handle.HandleAware
addHandleChild, getHandle, getName, getPathMethods 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:
getConfigin interfaceConfigAware<T extends ConfigBean>- Returns:
- the config bean
-
setConfig
Sets the configuration bean.- Specified by:
setConfigin interfaceConfigAware<T extends ConfigBean>- Parameters:
config- the config bean
-