接口 com.jdon.container.visitor.ComponentVisitor
的使用

使用 ComponentVisitor 的软件包
com.jdon.container.access   
com.jdon.container.visitor   
com.jdon.container.visitor.http   
 

com.jdon.container.accessComponentVisitor 的使用
 

返回 ComponentVisitorcom.jdon.container.access 中的方法
 ComponentVisitor TargetMetaRequest.getComponentVisitor()
           
 

参数类型为 ComponentVisitorcom.jdon.container.access 中的构造方法
TargetMetaRequest(TargetMetaDef targetMetaDef, ComponentVisitor componentVisitor)
          ComponentVisitor is HttpSessionComponentVisitor created in UserTargetMetaDefFactory.createTargetMetaRequest(TargetMetaDef, com.jdon.controller.context.ContextHolder)
 

com.jdon.container.visitorComponentVisitor 的使用
 

实现 ComponentVisitorcom.jdon.container.visitor 中的类
 class ComponentOriginalVisitor
          original impleplements for target service components that will be cached this is default concrete class of componentVisitor, configured in contain.xml
 

返回 ComponentVisitorcom.jdon.container.visitor 中的方法
 ComponentVisitor VisitorFactory.createtVisitor(SessionWrapper session, TargetMetaDef targetMetaDef)
          return a ComponentVisitor with cache. the httpSession is used for optimizing the component performance
 

com.jdon.container.visitor.httpComponentVisitor 的使用
 

实现 ComponentVisitorcom.jdon.container.visitor.http 中的类
 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.
 class NoSessionProxyComponentVisitor
           
 

返回 ComponentVisitorcom.jdon.container.visitor.http 中的方法
 ComponentVisitor HttpSessionVisitorFactoryImp.createtSessionVisitor(SessionWrapper session, TargetMetaDef targetMetaDef)
           
 ComponentVisitor HttpSessionVisitorFactoryImp.createtVisitor(SessionWrapper session, TargetMetaDef targetMetaDef)
          return a ComponentVisitor with cache. the httpSession is used for optimizing the component performance
 

参数类型为 ComponentVisitorcom.jdon.container.visitor.http 中的构造方法
HttpSessionProxyComponentVisitor(ComponentVisitor componentVisitor, TargetMetaRequestsHolder targetMetaRequestsHolder, HttpSessionVisitorFactorySetup httpSessionVisitorFactorySetup)
           
HttpSessionVisitorFactoryImp(ComponentVisitor componentVisitor, TargetMetaRequestsHolder targetMetaRequestsHolder, HttpSessionVisitorFactorySetup httpSessionVisitorFactorySetup)
           
NoSessionProxyComponentVisitor(ComponentVisitor componentVisitor, TargetMetaRequestsHolder targetMetaRequestsHolder)
           
 



Copyright © 2013. All Rights Reserved.