to banq --jdf学习疑问
一. * 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管理?