|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Objectorg.apache.struts2.config.ServletContextSingleton
public class ServletContextSingleton
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 byFilterDispatcherCompatWeblogic61
before the servlet context is needed by
org.apache.struts2.lifecycle.SessionLifecycleListener
which will use this object to get it.
方法摘要 | |
---|---|
static ServletContextSingleton |
getInstance()
Answers the singleton. |
javax.servlet.ServletContext |
getServletContext()
Gets the servlet context |
void |
setServletContext(javax.servlet.ServletContext context)
Sets the servlet context |
从类 java.lang.Object 继承的方法 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
方法详细信息 |
---|
public static ServletContextSingleton getInstance()
public javax.servlet.ServletContext getServletContext()
public void setServletContext(javax.servlet.ServletContext context)
context
- The web servlet context
|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |