SPT Core API

com.sptci.echo2.http
Class ContextListener

java.lang.Object
  extended by com.sptci.echo2.http.ContextListener
All Implemented Interfaces:
EventListener, ServletContextListener

public class ContextListener
extends Object
implements ServletContextListener

A ServletContextListener to close the connection any resources that are held by the Application instance or its subclasses.

© Copyright 2006 Sans Pareil Technologies, Inc.

Version:
$Id: ContextListener.java 4553 2008-12-24 10:34:16Z rakesh $
Author:
Rakesh Vidyadharan 2006-12-28

Constructor Summary
ContextListener()
           
 
Method Summary
protected  void closePMF()
          Close a PersistenceManagerFactory instance if it is in effect for the application.
 void contextDestroyed(ServletContextEvent event)
          Application Shutdown Event.
 void contextInitialized(ServletContextEvent event)
          Application Startup Event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextListener

public ContextListener()
Method Detail

contextInitialized

public void contextInitialized(ServletContextEvent event)
Application Startup Event. Create a context attribute named ATTRIBUTE.

Specified by:
contextInitialized in interface ServletContextListener

contextDestroyed

public void contextDestroyed(ServletContextEvent event)
Application Shutdown Event. Invokes SessionListener.close(javax.servlet.http.HttpSession).

Specified by:
contextDestroyed in interface ServletContextListener

closePMF

protected void closePMF()
Close a PersistenceManagerFactory instance if it is in effect for the application.


SPT Core API