com.fatwire.gst.foundation.controller.support
Class WebAppContextLoader
java.lang.Object
com.fatwire.gst.foundation.controller.support.WebAppContextLoader
- All Implemented Interfaces:
- EventListener, javax.servlet.ServletContextListener
public class WebAppContextLoader
- extends Object
- implements javax.servlet.ServletContextListener
ServletContextListener that loads and configures the AppContext for this
application.
- Author:
- Dolf Dijkstra
Field Summary |
static String |
CONTEXTS
|
protected static org.apache.commons.logging.Log |
LOG
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONTEXTS
public static final String CONTEXTS
- See Also:
- Constant Field Values
LOG
protected static final org.apache.commons.logging.Log LOG
WebAppContextLoader
public WebAppContextLoader()
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent sce)
- Specified by:
contextInitialized
in interface javax.servlet.ServletContextListener
configureWebAppContext
public AppContext configureWebAppContext(javax.servlet.ServletContext context)
configureFromInitParam
protected AppContext configureFromInitParam(javax.servlet.ServletContext context,
ClassLoader cl)
- Creates a AppContext based on the init parameter
CONTEXTS
.
- Parameters:
context
- cl
-
- Returns:
- the AppContext as configured from the web app init parameter.
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent sce)
- Specified by:
contextDestroyed
in interface javax.servlet.ServletContextListener
Copyright © 2010-2013 Oracle Corporation. All Rights Reserved.