net.sf.jguard.jee.listeners
Class ContextListener

java.lang.Object
  extended by net.sf.jguard.jee.listeners.ContextListener
All Implemented Interfaces:
java.util.EventListener, javax.servlet.ServletContextListener

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

handle webapp classloader reference in the JGuardPolicy classloaders repository.

Author:
Charles Gay, Vincent Beretti

Constructor Summary
ContextListener()
           
 
Method Summary
 void contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
          method called when the webapp shutdown: this method unregister the webapp in the JGuardPolicy repository.
 void contextInitialized(javax.servlet.ServletContextEvent contextEvent)
          method called when the webapp start.
 
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

contextDestroyed

public void contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
method called when the webapp shutdown: this method unregister the webapp in the JGuardPolicy repository.

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

contextInitialized

public void contextInitialized(javax.servlet.ServletContextEvent contextEvent)
method called when the webapp start. install jGuard overall Configuration and Policy.

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


Copyright © 2004-2009. All Rights Reserved.