org.infinispan.query.impl
Class LifecycleManager

java.lang.Object
  extended by org.infinispan.lifecycle.AbstractModuleLifecycle
      extended by org.infinispan.query.impl.LifecycleManager
All Implemented Interfaces:
ModuleLifecycle

public class LifecycleManager
extends AbstractModuleLifecycle

Lifecycle of the Query module: initializes the Hibernate Search engine and shuts it down at cache stop.

Author:
Sanne Grinovero (C) 2011 Red Hat Inc.

Constructor Summary
LifecycleManager()
           
 
Method Summary
 void cacheStarted(ComponentRegistry cr, String cacheName)
           
 void cacheStarting(ComponentRegistry cr, Configuration configuration, String cacheName)
          Registers the Search interceptor in the cache before it gets started
 void cacheStopped(ComponentRegistry cr, String cacheName)
           
 void cacheStopping(ComponentRegistry cr, String cacheName)
           
 
Methods inherited from class org.infinispan.lifecycle.AbstractModuleLifecycle
cacheManagerStarted, cacheManagerStarting, cacheManagerStopped, cacheManagerStopping
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LifecycleManager

public LifecycleManager()
Method Detail

cacheStarting

public void cacheStarting(ComponentRegistry cr,
                          Configuration configuration,
                          String cacheName)
Registers the Search interceptor in the cache before it gets started

Specified by:
cacheStarting in interface ModuleLifecycle
Overrides:
cacheStarting in class AbstractModuleLifecycle

cacheStarted

public void cacheStarted(ComponentRegistry cr,
                         String cacheName)
Specified by:
cacheStarted in interface ModuleLifecycle
Overrides:
cacheStarted in class AbstractModuleLifecycle

cacheStopping

public void cacheStopping(ComponentRegistry cr,
                          String cacheName)
Specified by:
cacheStopping in interface ModuleLifecycle
Overrides:
cacheStopping in class AbstractModuleLifecycle

cacheStopped

public void cacheStopped(ComponentRegistry cr,
                         String cacheName)
Specified by:
cacheStopped in interface ModuleLifecycle
Overrides:
cacheStopped in class AbstractModuleLifecycle

-->

Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.