org.springframework.web.util
Class Log4jConfigListener
java.lang.Object
org.springframework.web.util.Log4jConfigListener
- All Implemented Interfaces:
- java.util.EventListener, javax.servlet.ServletContextListener
- public class Log4jConfigListener
- extends java.lang.Object
- implements javax.servlet.ServletContextListener
Bootstrap listener for custom Log4J initialization in a web environment.
Simply delegates to Log4jWebConfigurer.
This listener should be registered before ContextLoaderListener
in web.xml, when using custom Log4J initialization.
For Servlet 2.2 containers and Servlet 2.3 ones that do not
initalize listeners before servlets, use Log4jConfigServlet.
See the ContextLoaderServlet javadoc for details.
- Since:
- 13.03.2003
- Author:
- Juergen Hoeller
- See Also:
Log4jWebConfigurer
,
Log4jConfigServlet
,
ContextLoaderListener
,
ContextLoaderServlet
,
WebAppRootListener
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Log4jConfigListener
public Log4jConfigListener()
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent event)
- Specified by:
contextInitialized
in interface javax.servlet.ServletContextListener
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent event)
- Specified by:
contextDestroyed
in interface javax.servlet.ServletContextListener
Copyright (C) 2003-2004 The Spring Framework Project.