com.jdon.container.visitor.http
类 HttpSessionProxyComponentVisitor

java.lang.Object
  继承者 com.jdon.container.visitor.http.HttpSessionProxyComponentVisitor
所有已实现的接口:
ComponentVisitor, Serializable, EventListener, javax.servlet.http.HttpSessionBindingListener

public class HttpSessionProxyComponentVisitor
extends Object
implements ComponentVisitor, javax.servlet.http.HttpSessionBindingListener, Serializable

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

作者:
banq
另请参见:
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
 

构造方法详细信息

HttpSessionProxyComponentVisitor

public HttpSessionProxyComponentVisitor(ComponentVisitor componentVisitor,
                                        TargetMetaRequestsHolder targetMetaRequestsHolder,
                                        HttpSessionVisitorFactorySetup httpSessionVisitorFactorySetup)
方法详细信息

valueBound

public void valueBound(javax.servlet.http.HttpSessionBindingEvent event)
指定者:
接口 javax.servlet.http.HttpSessionBindingListener 中的 valueBound

valueUnbound

public void valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
session destroyed. remove all references;

指定者:
接口 javax.servlet.http.HttpSessionBindingListener 中的 valueUnbound

visit

public Object visit()
the object type saved in componentsboxs is decided by the method" visitableFactory.createVisitable. only ejb service need cached, pojo service not need.

指定者:
接口 ComponentVisitor 中的 visit
参数:
targetMetaDef - TargetMetaDef
返回:
Object

createSessionContext

public SessionContext createSessionContext()
指定者:
接口 ComponentVisitor 中的 createSessionContext

removeObjects

public void removeObjects()
remove all ejb references



Copyright © 2013. All Rights Reserved.