摘要
Web应用开发变得越来越复杂,传统的单个应用框架往往很难满足日益增长的应用需求.目前在开放源代码运动的推动下,针对Web应用开发的基于Java的应用框架层出不穷,如基于MVC模式的Struts、处理持久化的Hibernate,以及服务于所有层面的Spring等.由于各种应用框架数目繁多,如何高效地复用框架并以此来提高Web应用开发效率就成为我们面临的问题.针对该问题,一个好的解决方法是选择其中优秀的框架,将它们整合,以发挥各个框架的长处.在对J2EE技术、模式和框架技术研究的基础上,利用分层框架模式,提出了一个新的WEB应用框架,对各层进行了通用的抽象,表示层引入了知识库组件和MVC组件,利用过滤器机制实现基于角色的安全机制和认证,业务层包含了IOC组件和AOP组件,数据持久层利用O/R映射组件实现多种持久化机制.此外,还对层间数据传输机制和基于线程模型的事务处理模式进行了探讨,并提出了合理的方案.
Web Application System became more and more complex, and the traditional framework can't satisfies with the framework the application demand which grows day by day. At present, under the open source movement, one after another incessantly in view of Web using the development based on the Java application framework, such as based on MVC pattern Struts, persistence framework Hibernate as well as serves all stratification planes Spring and so on. Because each kind of application framework is too many, how can we highly effective turns round with the framework enhances Web by this the question which becomes us using the development efficiency to face. In view of this question, a good solution is chooses outstanding framework, displays each framework the strong point. For the J2EE technology, the pattern and in the framework engineering research foundation, the use lamination framework pattern, proposed a new WEB application framework, has carried on the general abstract to each layer, indicated the layer has introduced the knowledge library module and the MVC module, using the filter mechanism realization based on the role safety mechanism and the authentication, the service layer has contained the IOC module and the AOP module, the data persistence layer uses the O/R mapping module realization many kinds of persistence mechanisms. In addition, the data transmission mechanism and processed the pattern to the layer based on line regulation model business to carry on the discussion, and proposed the reasonable plan.
出处
《华中师范大学学报(自然科学版)》
CAS
CSCD
2008年第4期544-548,共5页
Journal of Central China Normal University:Natural Sciences
基金
国家自然科学基金资助项目(60475021)
河南省教育厅自然科学计划资助项目(200510464021).