摘要
J2EE中存在着大量的反模式,这些反模式会极大的降低应用系统的性能,对"会话数据膨胀"反模式进行了研究,提出了两种重构模型,即业务流控制器模型和委托控制器模型,它们有助于将所有导航信息移出单个的Servlet和JSP,放入一个中心Servlet中,实现代码的分流和调用路径的选择,减少了开发人员的工作量,分析了具体的重构步骤,并以实例说明了这些模型在重构过程中的作用。
There are a large number of anti-patterns in J2EE, these anti-patterns would greatly reduce the performance of application system. The expansion of session data anti-pattern is researched and two refactoring models are presented that are commission flow con-troller model and delegate controller model. They can put out of all the navigation information of a single servlet and JSP, into a center servlet, and achieve an effective triage code and call the path of choice, reduce the workload of the developers. It has given a detailed steps of refactoring process, and practice them in an example, it proves that use of these two models is a solution to the problem of expansion of session data in the process of refactoring.
出处
《计算机工程与设计》
CSCD
北大核心
2010年第8期1731-1733,1737,共4页
Computer Engineering and Design
基金
陕西省科学技术研究发展计划基金项目(2008K05-13)
关键词
反模式
会话数据膨胀
重构模型
业务流
委托
anti-pattern
expansion of session date
refactoring model
traffic flow
delegate