com.fatwire.gst.foundation.controller.support
Class WebAppContextLoader

java.lang.Object
  extended by 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
           
 
Constructor Summary
WebAppContextLoader()
           
 
Method Summary
protected  AppContext configureFromInitParam(javax.servlet.ServletContext context, ClassLoader cl)
          Creates a AppContext based on the init parameter CONTEXTS.
 AppContext configureWebAppContext(javax.servlet.ServletContext context)
           
 void contextDestroyed(javax.servlet.ServletContextEvent sce)
           
 void contextInitialized(javax.servlet.ServletContextEvent sce)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTEXTS

public static final String CONTEXTS
See Also:
Constant Field Values

LOG

protected static final org.apache.commons.logging.Log LOG
Constructor Detail

WebAppContextLoader

public WebAppContextLoader()
Method Detail

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.