to banq --jdf學習疑問

pub發表於2008-09-18
一. * it's scope is a instance for per request of one user ;
這個是TargetMetaRequest ?

二.
/**
* create a UserTargetMetaDef instance.
*
* @param containerWrapper
* @param targetMetaDef
* @param request
* @return
*/
public static TargetMetaRequest create(TargetMetaDef targetMetaDef,
HttpServletRequest request){
ContainerWrapper containerWrapper = servletContainerFinder.findContainer(request);
TargetMetaRequest targetMetaRequest = new TargetMetaRequest(targetMetaDef);
VisitorFactory visitorFactory = (VisitorFactory)containerWrapper.lookup(ComponentKeys.VISITOR_FACTORY);
ComponentVisitor cm = visitorFactory.getVisitor(request, targetMetaRequest.getTargetMetaDef());
targetMetaRequest.setComponentVisitor(cm);
return targetMetaRequest;
}
UserTargetMetaDef == targetMetaRequest ?

三.
* this class inlude those datas that read from the web container or others.
* these datas is stateful, and it's scope is one instance per client.
* usually they are saved in httpSession of the web container.
SessionContext還是放到httpSession中了?oojdon說是不由web container管理?

相關文章