|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcom.jdon.container.visitor.http.HttpSessionProxyComponentVisitor
public class HttpSessionProxyComponentVisitor
using HttpSession as those components that need be cached
now there are three kinds type: ComponentKeys.PROXYINSTANCE_FACTORY
ComponentKeys.TARGETSERVICE_FACTORY; ComponentKeys.SESSIONCONTEXT_FACTORY;
PROXYINSTANCE_FACTORY and TARGETSERVICE_FACTORY are the factorys that create
components that need be optimized, if every time create these components, it
will cost performance.
ComponentKeys.SESSIONCONTEXT_FACTORY is the factory of the state data from
the web container.
Proxy patterns.
created in
HttpSessionVisitorFactoryImp.createtVisitor(com.jdon.controller.context.SessionWrapper, com.jdon.bussinessproxy.TargetMetaDef)
used in
UserTargetMetaDefFactory.createTargetMetaRequest(com.jdon.bussinessproxy.TargetMetaDef, com.jdon.controller.context.ContextHolder)
ComponentVisitor is ComponentOriginalVisitor that configured in contain.xml
HttpSessionVisitorFactoryImp,
序列化表格| 构造方法摘要 | |
|---|---|
HttpSessionProxyComponentVisitor(ComponentVisitor componentVisitor,
TargetMetaRequestsHolder targetMetaRequestsHolder,
HttpSessionVisitorFactorySetup httpSessionVisitorFactorySetup)
|
|
| 方法摘要 | |
|---|---|
SessionContext |
createSessionContext()
|
void |
removeObjects()
remove all ejb references |
void |
valueBound(javax.servlet.http.HttpSessionBindingEvent event)
|
void |
valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
session destroyed. remove all references; |
Object |
visit()
the object type saved in componentsboxs is decided by the method" visitableFactory.createVisitable. only ejb service need cached, pojo service not need. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public HttpSessionProxyComponentVisitor(ComponentVisitor componentVisitor,
TargetMetaRequestsHolder targetMetaRequestsHolder,
HttpSessionVisitorFactorySetup httpSessionVisitorFactorySetup)
| 方法详细信息 |
|---|
public void valueBound(javax.servlet.http.HttpSessionBindingEvent event)
javax.servlet.http.HttpSessionBindingListener 中的 valueBoundpublic void valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
javax.servlet.http.HttpSessionBindingListener 中的 valueUnboundpublic Object visit()
ComponentVisitor 中的 visittargetMetaDef - TargetMetaDef
public SessionContext createSessionContext()
ComponentVisitor 中的 createSessionContextpublic void removeObjects()
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||