|
Infinispan Distribution 5.2.6.Final-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 (or extendAbstractModuleLifecycle
)
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-module.properties
Currently, the following properties are supported:
ModuleLifecycle
.
This implementation would typically reside in the module's codebase.org.infinispan.configuration
), can access their
configuration beans via Configuration.module(Class)
Method Summary | |
---|---|
void |
cacheManagerStarted(GlobalComponentRegistry gcr)
|
void |
cacheManagerStarting(GlobalComponentRegistry gcr,
GlobalConfiguration globalConfiguration)
|
void |
cacheManagerStarting(GlobalComponentRegistry gcr,
GlobalConfiguration globalConfiguration)
Deprecated. |
void |
cacheManagerStopped(GlobalComponentRegistry gcr)
|
void |
cacheManagerStopping(GlobalComponentRegistry gcr)
|
void |
cacheStarted(ComponentRegistry cr,
String cacheName)
|
void |
cacheStarting(ComponentRegistry cr,
Configuration configuration,
String cacheName)
|
void |
cacheStarting(ComponentRegistry cr,
Configuration configuration,
String cacheName)
Deprecated. |
void |
cacheStopped(ComponentRegistry cr,
String cacheName)
|
void |
cacheStopping(ComponentRegistry cr,
String cacheName)
|
Method Detail |
---|
void cacheManagerStarting(GlobalComponentRegistry gcr, GlobalConfiguration globalConfiguration)
@Deprecated void cacheManagerStarting(GlobalComponentRegistry gcr, GlobalConfiguration globalConfiguration)
cacheManagerStarting(org.infinispan.factories.GlobalComponentRegistry, org.infinispan.configuration.global.GlobalConfiguration)
instead
void cacheManagerStarted(GlobalComponentRegistry gcr)
void cacheManagerStopping(GlobalComponentRegistry gcr)
void cacheManagerStopped(GlobalComponentRegistry gcr)
void cacheStarting(ComponentRegistry cr, Configuration configuration, String cacheName)
@Deprecated void cacheStarting(ComponentRegistry cr, Configuration configuration, String cacheName)
cacheStarting(org.infinispan.factories.ComponentRegistry, org.infinispan.configuration.cache.Configuration, String)
instead
void cacheStarted(ComponentRegistry cr, String cacheName)
void cacheStopping(ComponentRegistry cr, String cacheName)
void cacheStopped(ComponentRegistry cr, String cacheName)
|
Infinispan Distribution 5.2.6.Final-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |