| |
|
| java.lang.Object org.apache.struts2.config.ServletContextSingleton
ServletContextSingleton | public class ServletContextSingleton (Code) | | This singleton holds an instance of the web servlet context.
This is needed for running Struts 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
org.apache.struts2.dispatcher.FilterDispatcherCompatWeblogic61 before the servlet context is needed by
org.apache.struts2.lifecycle.SessionLifecycleListener which will use this object to get it.
|
getInstance | public static ServletContextSingleton getInstance()(Code) | | Answers the singleton.
At some point, the caller must populate the web servlet
context.
Answers the singleton instance of this class |
getServletContext | public ServletContext getServletContext()(Code) | | Gets the servlet context
The web servlet context |
setServletContext | public void setServletContext(ServletContext context)(Code) | | Sets the servlet context
Parameters: context - The web servlet context |
|
|
|