org.melati.servlet
Class PoemServletContextListener

Package class diagram package PoemServletContextListener
java.lang.Object
  extended by org.melati.servlet.PoemServletContextListener
All Implemented Interfaces:
EventListener, javax.servlet.ServletContextListener

public final class PoemServletContextListener
extends Object
implements javax.servlet.ServletContextListener

Close databases when servlet context is destroyed.

Since:
30 May 2007
Author:
timp
See Also:
org.melati.poem.PoemDatbaseFactory

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

Constructor Detail

PoemServletContextListener

public PoemServletContextListener()
Method Detail

contextDestroyed

public void contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
Disconnect from any databases.

Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener
See Also:
ServletContextListener.contextDestroyed(javax.servlet.ServletContextEvent)

contextInitialized

public void contextInitialized(javax.servlet.ServletContextEvent servletContextEvent)

Specified by:
contextInitialized in interface javax.servlet.ServletContextListener
See Also:
ServletContextListener.contextInitialized(javax.servlet.ServletContextEvent)


Copyright © 2000-2010 PanEris. All Rights Reserved.