Package org.infinispan.lifecycle
Interface ModuleLifecycle
-
- All Known Implementing Classes:
AbstractModuleLifecycle
,LifecycleCallbacks
,LifecycleCallbacks
,LifecycleCallbacks
,LifecycleCallbacks
,LifecycleCallbacks
,LifecycleCallbacks
public interface ModuleLifecycle
ModuleLifecycle is an internal API hook for delegating lifecycle events to Infinispan sub-modules.For example, the 'tree' module needs to register specific types with the StreamingMarshaller. The 'query' module needs to register an interceptor with the Cache if the Cache has enabled querying etc etc.
To use this hook, you would need to implement this interface and take the necessary steps to make it discoverable by the
ServiceLoader
mechanism.Modules who also have their own configuration (see {@see org.infinispan.configuration}), can access their configuration beans via
Configuration.module(Class)
- Since:
- 4.0
- Author:
- Manik Surtani
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
cacheManagerStarted(GlobalComponentRegistry gcr)
default void
cacheManagerStarting(GlobalComponentRegistry gcr, GlobalConfiguration globalConfiguration)
default void
cacheManagerStopped(GlobalComponentRegistry gcr)
default void
cacheManagerStopping(GlobalComponentRegistry gcr)
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 Detail
-
cacheManagerStarting
default void cacheManagerStarting(GlobalComponentRegistry gcr, GlobalConfiguration globalConfiguration)
-
cacheManagerStarted
default void cacheManagerStarted(GlobalComponentRegistry gcr)
-
cacheManagerStopping
default void cacheManagerStopping(GlobalComponentRegistry gcr)
-
cacheManagerStopped
default void cacheManagerStopped(GlobalComponentRegistry gcr)
-
cacheStarting
default void cacheStarting(ComponentRegistry cr, Configuration configuration, String cacheName)
-
cacheStarted
default void cacheStarted(ComponentRegistry cr, String cacheName)
-
cacheStopping
default void cacheStopping(ComponentRegistry cr, String cacheName)
-
cacheStopped
default void cacheStopped(ComponentRegistry cr, String cacheName)
-
-