com.sun.appserv.web.taglibs.cache
Class CacheContextListener

java.lang.Object
  extended by com.sun.appserv.web.taglibs.cache.CacheContextListener
All Implemented Interfaces:
java.util.EventListener, javax.servlet.ServletContextListener

public class CacheContextListener
extends java.lang.Object
implements javax.servlet.ServletContextListener

CacheContextListener implements the ServletContextListener interface in order to be notified when the context is created and destroyed. It is used to create the cache and add it as a context attribute.


Constructor Summary
CacheContextListener()
          Public constructor taking no arguments according to servlet spec
 
Method Summary
 void contextDestroyed(javax.servlet.ServletContextEvent sce)
          This is called when the context is shutdown.
 void contextInitialized(javax.servlet.ServletContextEvent sce)
          This is called when the context is created.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheContextListener

public CacheContextListener()
Public constructor taking no arguments according to servlet spec

Method Detail

contextInitialized

public void contextInitialized(javax.servlet.ServletContextEvent sce)
This is called when the context is created.

Specified by:
contextInitialized in interface javax.servlet.ServletContextListener

contextDestroyed

public void contextDestroyed(javax.servlet.ServletContextEvent sce)
This is called when the context is shutdown.

Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener


Copyright © 2012 GlassFish Community. All Rights Reserved.