Package com.jdon.container.visitor

Interface Summary
ComponentVisitor Visitor pattern ComponentVisitor is a actor of Visitor, it do not need many access method, such as: visitAcomponent(); visitBcomponent(); ...
MyComponentProps if a class implements this interface, the class maybe access a component by cache visitor visitor pattern's client need implements this interface.
Visitable all components that runnung result need cache in container must implements this interface.
 

Class Summary
ComponentOriginalVisitor original impleplements for target service components that will be cached
HttpSessionProxyVisitor 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.
VisitorFactory Factory that get visitors for the container that have been optimized by cache(HttpSession) replace this class in container.xml ,we can change HttpSession with another session type, HttpSession is binding to Web container.