|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.web.context.ContextLoaderListener
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.
ContextLoader
,
ContextLoaderServlet
,
Log4jConfigListener
Constructor Summary | |
ContextLoaderListener()
|
Method Summary | |
void |
contextDestroyed(ServletContextEvent event)
Close the root web application context. |
void |
contextInitialized(ServletContextEvent event)
Initialize the root web application context. |
protected ContextLoader |
createContextLoader()
Create the ContextLoader to use. |
ContextLoader |
getContextLoader()
Return the ContextLoader used by this listener. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ContextLoaderListener()
Method Detail |
public void contextInitialized(ServletContextEvent event)
contextInitialized
in interface ServletContextListener
protected ContextLoader createContextLoader()
public ContextLoader getContextLoader()
public void contextDestroyed(ServletContextEvent event)
contextDestroyed
in interface ServletContextListener
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |