org.springframework.web.context
Class ContextLoaderListener
- public class ContextLoaderListener
- implements ServletContextListener
Bootstrap listener to start up Spring's root WebApplicationContext.
Simply delegates to ContextLoader.
This listener should be registered after Log4jConfigListener in web.xml,
if the latter is used.
For Servlet 2.2 containers and Servlet 2.3 ones that do not initalize
listeners before servlets, use ContextLoaderServlet. See the latter's Javadoc
for details.
- Author:
- Juergen Hoeller
- Since: 17.02.2003
- See Also: ContextLoader, ContextLoaderServlet, Log4jConfigListener
| Method Summary |
void | contextDestroyed(ServletContextEvent event) Close the root web application context. |
void | contextInitialized(ServletContextEvent event) Initialize the root web application context. |
contextDestroyed
public void contextDestroyed(ServletContextEvent event)
- Close the root web application context.
contextInitialized
public void contextInitialized(ServletContextEvent event)
- Initialize the root web application context.
to Class org.springframework.web.context.ContextLoader