org.directwebremoting.servlet
Class DwrListener

java.lang.Object
  extended by org.directwebremoting.servlet.DwrListener
All Implemented Interfaces:
java.util.EventListener, javax.servlet.ServletContextListener

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

A ServletContextListener that can be used to pass the events on to everything in DWRs Container.

Author:
Joe Walker [joe at getahead dot ltd dot uk]

Constructor Summary
DwrListener()
           
 
Method Summary
 void contextDestroyed(javax.servlet.ServletContextEvent ev)
          Find all the containers that have been registered, and check all the contained beans for ones that implement ServletContextListener and pass the ServletContextListener.contextDestroyed(javax.servlet.ServletContextEvent) event on.
 void contextInitialized(javax.servlet.ServletContextEvent ev)
          This happens before the DwrServlet has started so there is nothing we can do.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DwrListener

public DwrListener()
Method Detail

contextInitialized

public void contextInitialized(javax.servlet.ServletContextEvent ev)
This happens before the DwrServlet has started so there is nothing we can do.

Specified by:
contextInitialized in interface javax.servlet.ServletContextListener

contextDestroyed

public void contextDestroyed(javax.servlet.ServletContextEvent ev)
Find all the containers that have been registered, and check all the contained beans for ones that implement ServletContextListener and pass the ServletContextListener.contextDestroyed(javax.servlet.ServletContextEvent) event on.

Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener
Parameters:
ev - The event object to pass on
See Also:
ServletContextListener.contextDestroyed(javax.servlet.ServletContextEvent)

Copyright 2008