|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jdon.container.visitor.HttpSessionProxyVisitor
public class 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. ComponentKeys.SESSIONCONTEXT_FACTORY is the factory of the state data from the web container. Decorator patterns. Decoratee is ComponentOriginVisitor Decorator is this class;
container.xml| Constructor Summary | |
|---|---|
HttpSessionProxyVisitor(ComponentVisitor componentVisitor)
|
|
| Method Summary | |
|---|---|
ContainerWrapper |
getContainerWrapper()
|
void |
removeObjects()
remove all ejb references |
void |
valueBound(javax.servlet.http.HttpSessionBindingEvent event)
|
void |
valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
session destroyed. |
java.lang.Object |
visit(TargetMetaRequest targetMetaRequest)
the object type saved in componentsboxs is decided by the method" visitableFactory.createVisitable. |
SessionContext |
visitSessionContext(TargetMetaRequest targetMetaRequest)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpSessionProxyVisitor(ComponentVisitor componentVisitor)
| Method Detail |
|---|
public ContainerWrapper getContainerWrapper()
getContainerWrapper in interface ComponentVisitorpublic void valueBound(javax.servlet.http.HttpSessionBindingEvent event)
valueBound in interface javax.servlet.http.HttpSessionBindingListenerpublic void valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
valueUnbound in interface javax.servlet.http.HttpSessionBindingListenerpublic java.lang.Object visit(TargetMetaRequest targetMetaRequest)
visit in interface ComponentVisitortargetMetaDef - TargetMetaDef
public SessionContext visitSessionContext(TargetMetaRequest targetMetaRequest)
visitSessionContext in interface ComponentVisitorpublic void removeObjects()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||