节点文献

基于构件的开发实践研究

【作者】 鲁杰

【导师】 程家兴;

【作者基本信息】 安徽大学 , 计算机应用技术, 2004, 硕士

【摘要】 基于构件的软件工程(CBSE)已经成为软件开发的主流范型,它包括领域工程和基于构件的开发(CBD)。本文首先以CBSE中的框架为切入点,分析了CBSE的现状,并指出了其中一些不足之处: 现有的一些构件框架仅仅强调给构件提供服务,而忽略了接口层和业务逻辑层的分离; 构件依赖于特定框架的API; 缺乏对单元测试的支持; 缺乏对横切关注点(Cross Cutting Concerns)的模块化支持。 本文主要针对上述不足之处,做了以下一些工作: 以实践为依据,总结了在实施CBD过程中的一些具体问题; 结合一个轻量级构件框架—Spring Framework说明了如何使用Dependency Injection模式解决CBD过程中的构件组装、单元测试等问题;并在具体的项目中加以应用: 将分层的设计思想引入到具体的项目中,解决了CBD过程中常见的接口依赖问题; 分析了软件系统中的横切关注点问题,介绍了实现横切关注点模块化的 方法—AOP,并应用AOP实现了项目中一些横切关注点的模块化。

【Abstract】 Component based software engineering (CBSE) now becomes the mainstream methodology at software development. It includes domain engineering and component based development (CBD). In this article, we firstly analyze the present status of CBSE mainly concerning its framework. Some deficiencies are pointed out as follows: Some present component frameworks focus on the service providing for the components, but the separation of interface layer and business logic layer is ignored; Components are tightly coupled with the API provided by the framework; Lacking the support for component unit testing; Lacking the support for the modularization of crossing cutting concerns. Our work mainly focuses on these deficiencies, and can be summarized as follows: Some problems encountered at the CBD process have been pointed out, concerning the real world project; A light weight component framework-Spring framework has been introduced with its underlying dependency injection pattern. The application of the spring framework is discussed in detail, and how to solve the problems concerning component composition and component unit testing as well; The layer of indirection strategy has been applied in the project, to solve the interface dependency problem we commonly meet at CBD process; Aspect oriented programming (AOP) has been introduced to solve the modularization of cross cutting concerns, and its application as well.

  • 【网络出版投稿人】 安徽大学
  • 【网络出版年期】2004年 03期
  • 【分类号】TP311.52
  • 【被引频次】7
  • 【下载频次】198
节点文献中: 

本文链接的文献网络图示:

本文的引文网络