org.infinispan.lifecycle
Interface ModuleLifecycle
- All Known Implementing Classes:
- AbstractModuleLifecycle, LifecycleManager
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 Marshaller. 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 (or extend AbstractModuleLifecycle
)
and then create a file called infinispan-module.properties in the root of your module's JAR.
When using Maven, for example, infinispan-module.properties would typically be in the module's
src/main/resources directory so it gets packaged appropriately.
infinispan-modules.properties
Currently, the following properties are supported:
- infinispan.module.name - the name of the module
- infinispan.module.lifecycle - the name of the class implementing
ModuleLifecycle
. This implementation would typically reside in the module's codebase.
- Since:
- 4.0
- Author:
- Manik Surtani
cacheManagerStarting
void cacheManagerStarting(GlobalComponentRegistry gcr)
cacheManagerStarted
void cacheManagerStarted(GlobalComponentRegistry gcr)
cacheManagerStopping
void cacheManagerStopping(GlobalComponentRegistry gcr)
cacheManagerStopped
void cacheManagerStopped(GlobalComponentRegistry gcr)
cacheStarting
void cacheStarting(ComponentRegistry cr,
String cacheName)
cacheStarted
void cacheStarted(ComponentRegistry cr,
String cacheName)
cacheStopping
void cacheStopping(ComponentRegistry cr,
String cacheName)
cacheStopped
void cacheStopped(ComponentRegistry cr,
String cacheName)
Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.