org.drools.guvnor.server.repository
Class RepositoryShutdownService

java.lang.Object
  extended by org.drools.guvnor.server.repository.RepositoryShutdownService
All Implemented Interfaces:
EventListener, javax.servlet.ServletContextListener

public class RepositoryShutdownService
extends Object
implements javax.servlet.ServletContextListener

Utility class to handle shutting down the JCR Transient Repository in a Servlet container


Constructor Summary
RepositoryShutdownService()
           
 
Method Summary
 void contextDestroyed(javax.servlet.ServletContextEvent arg0)
          Force the JCR Repository to shutdown when the application is unloaded.
 void contextInitialized(javax.servlet.ServletContextEvent arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepositoryShutdownService

public RepositoryShutdownService()
Method Detail

contextDestroyed

public void contextDestroyed(javax.servlet.ServletContextEvent arg0)
Force the JCR Repository to shutdown when the application is unloaded. Users may not "logout" of the application and therefore there is a possibility that the Repository holds the repository lock open.

Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener

contextInitialized

public void contextInitialized(javax.servlet.ServletContextEvent arg0)
Specified by:
contextInitialized in interface javax.servlet.ServletContextListener


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.