com.opensymphony.webwork.config
Class ServletContextSingleton
java.lang.Object
com.opensymphony.webwork.config.ServletContextSingleton
public class ServletContextSingleton
- extends Object
This singleton holds an instance of the web servlet context.
This is needed for running WebWork on Weblogic Server 6.1
because there is no provision to retrieve the servlet context
from the web session object.
This class is created to bet that this singleton can be set by
FilterDispatcherCompatWeblogic61
before the servlet context is needed by
SessionLifecycleListener
which will use this object to get it.
- Version:
- $Id: ServletContextSingleton.java 897 2005-06-25 16:15:18Z plightbo $
- Author:
- Scott N. Smith scottnelsonsmith@yahoo.com
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static ServletContextSingleton getInstance()
- answers the singleton.
At some point, the caller must populate the web servlet
context.
- Returns:
- answers the singleton instance of this class
getServletContext
public ServletContext getServletContext()
- Returns:
- the web servlet context
setServletContext
public void setServletContext(ServletContext context)
- Parameters:
context
- the web servlet context