org.cateproject.controller.context
Class CateContextLoaderListener
java.lang.Object
org.springframework.web.context.ContextLoader
org.cateproject.controller.context.CateContextLoaderListener
- All Implemented Interfaces:
- EventListener, ServletContextListener
public class CateContextLoaderListener
- extends org.springframework.web.context.ContextLoader
- implements ServletContextListener
| Fields inherited from class org.springframework.web.context.ContextLoader |
CONFIG_LOCATION_PARAM, CONTEXT_CLASS_PARAM, LOCATOR_FACTORY_KEY_PARAM, LOCATOR_FACTORY_SELECTOR_PARAM |
| Methods inherited from class org.springframework.web.context.ContextLoader |
customizeContext, determineContextClass, getCurrentWebApplicationContext, loadParentContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CateContextLoaderListener
public CateContextLoaderListener()
contextInitialized
public void contextInitialized(ServletContextEvent servletContextEvent)
- Specified by:
contextInitialized in interface ServletContextListener
initWebApplicationContext
public org.springframework.web.context.WebApplicationContext initWebApplicationContext(ServletContext servletContext)
- Initialize Spring's web application context for the given servlet context,
according to the "
contextClass" and
"contextConfigLocation" context-params.
- Overrides:
initWebApplicationContext in class org.springframework.web.context.ContextLoader
- Parameters:
servletContext - current servlet context
- Returns:
- the new WebApplicationContext
- See Also:
ContextLoader.CONTEXT_CLASS_PARAM,
ContextLoader.CONFIG_LOCATION_PARAM
createFailSafeWebApplicationContext
protected org.springframework.web.context.WebApplicationContext createFailSafeWebApplicationContext(ServletContext sc,
org.springframework.context.ApplicationContext parent)
createWebApplicationContext
protected org.springframework.web.context.WebApplicationContext createWebApplicationContext(ServletContext sc,
org.springframework.context.ApplicationContext parent)
- Overrides:
createWebApplicationContext in class org.springframework.web.context.ContextLoader
closeWebApplicationContext
public void closeWebApplicationContext(ServletContext servletContext)
- Close Spring's web application context for the given servlet context. If
the default
ContextLoader.loadParentContext(ServletContext) implementation,
which uses ContextSingletonBeanFactoryLocator, has loaded any shared
parent context, release one reference to that shared parent context.
If overriding ContextLoader.loadParentContext(ServletContext), you may have
to override this method as well.
- Overrides:
closeWebApplicationContext in class org.springframework.web.context.ContextLoader
- Parameters:
servletContext - the ServletContext that the WebApplicationContext runs in
contextDestroyed
public void contextDestroyed(ServletContextEvent servletContextEvent)
- Specified by:
contextDestroyed in interface ServletContextListener
Copyright © 2010. All Rights Reserved.