Package org.infinispan.lifecycle
Interface ModuleLifecycle
- All Known Implementing Classes:
ClusteredLockModuleLifecycle
,CounterModuleLifecycle
,JbossMarshallingModule
,LifecycleCallbacks
,LifecycleCallbacks
,LifecycleCallbacks
,LifecycleCallbacks
,LifecycleCallbacks
,LifecycleManager
,MultimapModuleLifecycle
,RespModuleLifecycle
public interface ModuleLifecycle
ModuleLifecycle is an API hook for delegating lifecycle events to Infinispan sub-modules.
For example the 'query' module needs to register an interceptor with the Cache if the Cache has querying enabled etc.
To use this hook, you would need to implement this interface and annotate it with
InfinispanModule
.
Modules who also have their own configuration (see ), can access their
configuration beans via Configuration.module(Class)
- Since:
- 4.0
- Author:
- Manik Surtani
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
default void
cacheManagerStarting
(GlobalComponentRegistry gcr, GlobalConfiguration globalConfiguration) default void
default void
default void
cacheStarted
(ComponentRegistry cr, String cacheName) default void
cacheStarting
(ComponentRegistry cr, Configuration configuration, String cacheName) default void
cacheStopped
(ComponentRegistry cr, String cacheName) default void
cacheStopping
(ComponentRegistry cr, String cacheName)
-
Method Details
-
cacheManagerStarting
default void cacheManagerStarting(GlobalComponentRegistry gcr, GlobalConfiguration globalConfiguration) -
cacheManagerStarted
-
cacheManagerStopping
-
cacheManagerStopped
-
cacheStarting
-
cacheStarted
-
cacheStopping
-
cacheStopped
-