org.sakaiproject.util
Class ContextLoaderListener

java.lang.Object
  extended by org.springframework.web.context.ContextLoaderListener
      extended by org.sakaiproject.util.ContextLoaderListener
All Implemented Interfaces:
EventListener, javax.servlet.ServletContextListener

public class ContextLoaderListener
extends org.springframework.web.context.ContextLoaderListener

Sakai's extension to the Spring ContextLoaderListener - use our ContextLoader, and increment / decrement the child count of the ComponentManager on init / destroy.


Constructor Summary
ContextLoaderListener()
           
 
Method Summary
 void contextDestroyed(javax.servlet.ServletContextEvent event)
          Close the root web application context.
 void contextInitialized(javax.servlet.ServletContextEvent event)
          Initialize the root web application context.
protected  org.springframework.web.context.ContextLoader createContextLoader()
          Create the ContextLoader to use.
 
Methods inherited from class org.springframework.web.context.ContextLoaderListener
getContextLoader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextLoaderListener

public ContextLoaderListener()
Method Detail

createContextLoader

protected org.springframework.web.context.ContextLoader createContextLoader()
Create the ContextLoader to use. Can be overridden in subclasses.

Overrides:
createContextLoader in class org.springframework.web.context.ContextLoaderListener
Returns:
the new ContextLoader

contextInitialized

public void contextInitialized(javax.servlet.ServletContextEvent event)
Initialize the root web application context.

Specified by:
contextInitialized in interface javax.servlet.ServletContextListener
Overrides:
contextInitialized in class org.springframework.web.context.ContextLoaderListener

contextDestroyed

public void contextDestroyed(javax.servlet.ServletContextEvent event)
Close the root web application context.

Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener
Overrides:
contextDestroyed in class org.springframework.web.context.ContextLoaderListener


Copyright © 2003-2012 The Sakai Foundation. All Rights Reserved.