Package org.sakaiproject.util
Class SakaiContextLoaderListener
- java.lang.Object
-
- org.springframework.web.context.ContextLoader
-
- org.sakaiproject.component.impl.SakaiContextLoader
-
- org.sakaiproject.util.SakaiContextLoaderListener
-
- All Implemented Interfaces:
EventListener,javax.servlet.ServletContextListener
public class SakaiContextLoaderListener extends SakaiContextLoader implements javax.servlet.ServletContextListener
Sakai's extension to the Spring ContextLoaderListener - use our ContextLoader, and increment / decrement the child count of the ComponentManager on init / destroy.
-
-
Field Summary
-
Fields inherited from class org.sakaiproject.component.impl.SakaiContextLoader
SPRING_CONTEXT_SUFFIX
-
-
Constructor Summary
Constructors Constructor Description SakaiContextLoaderListener(org.springframework.web.context.WebApplicationContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcontextDestroyed(javax.servlet.ServletContextEvent event)Close the root web application context.voidcontextInitialized(javax.servlet.ServletContextEvent event)Initialize the root web application context.-
Methods inherited from class org.sakaiproject.component.impl.SakaiContextLoader
customizeContext, loadParentContext
-
Methods inherited from class org.springframework.web.context.ContextLoader
closeWebApplicationContext, configureAndRefreshWebApplicationContext, createWebApplicationContext, determineContextClass, determineContextInitializerClasses, getCurrentWebApplicationContext, initWebApplicationContext, setContextInitializers
-
-
-
-
Method Detail
-
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent event)
Initialize the root web application context.- Specified by:
contextInitializedin interfacejavax.servlet.ServletContextListener
-
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent event)
Close the root web application context.- Specified by:
contextDestroyedin interfacejavax.servlet.ServletContextListener
-
-