org.apache.jackrabbit.j2ee
Class DerbyShutdown

java.lang.Object
  extended by org.apache.jackrabbit.j2ee.DerbyShutdown
All Implemented Interfaces:
EventListener, javax.servlet.ServletContextListener

public class DerbyShutdown
extends Object
implements javax.servlet.ServletContextListener

Servlet context listener that releases all remaining Derby resources when the web application is undeployed. The resources are released only if the Derby classes were loaded from within this webapp.

See Also:
JCR-1301

Constructor Summary
DerbyShutdown()
           
 
Method Summary
 void contextDestroyed(javax.servlet.ServletContextEvent event)
           
 void contextInitialized(javax.servlet.ServletContextEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DerbyShutdown

public DerbyShutdown()
Method Detail

contextInitialized

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

contextDestroyed

public void contextDestroyed(javax.servlet.ServletContextEvent event)
Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener


Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.