节点文献

基于Castle框架组件机制的研究及其应用

The Research and Application of Component Mechanism Based on Castle Framework

【作者】 杨扬

【导师】 郭庆平;

【作者基本信息】 武汉理工大学 , 计算机应用技术, 2008, 硕士

【摘要】 伴随着软件开发技术的发展,在多层的软件开发项目中,可复用易扩展的,而且是经过良好测试的软件组件,越来越为开发者所青睐。这意味着开发人员可以将充裕的时间用在分析、构建业务逻辑的应用上,而非繁杂的代码编程上。于是开发人员将相同类型问题的解决途径进行抽象,抽取成一个应用框架。利用这些框架构建的分布式应用程序完美的实现了应用程序高内聚、低耦合、高弹性、易维护的优点。框架提供了大粒度软件复用的新途径,提高了软件开发的效率。因而如何设计并构建一个强健而稳定的框架一直是众多软件开发者致力研究的目标。当今两大主流开发平台是Microsoft公司的.NET平台和Sun公司的J2EE平台。.NET平台以开发效率高、简单易用有后起之优势,然而J2EE在开发框架方面却更成熟。对此,在微软开发阵营里也相继推出了一系列开源框架。其中Castle就是针对.NET平台开发的一个非常优秀的开源框架。该框架既保持了.NET平台下快速开发的优势,又加上了框架的思想,使整个系统的架构非常合理。Castle框架是.NET平台下的一个开源框架,它将一些成熟开源应用进行无缝整合,从而形成了一套完善的应用系统框架。Castle框架将会帮助开发人员用最少的时间和最优化的代码完成开发任务,简化了企业级开发和Web应用。本文主要研究Castle框架中两大核心机制-IOC机制和AOP机制。首先讨论了两种机制的发展历史及其在Castle框架中的表现形式;其次分别讨论了两种机制在系统应用上的好处和优势;在设计方面,为了简化开发人员今后在采用Castle框架中IOC和AOP机制设计系统的工作量,在本论文中,设计出了一个IOC和AOP配置文件自动生成的可视化工具,该工具为程序员快速完成应用系统中IOC和AOP配置文件提供了一个很好的平台。为了更好的测试该可视化工具同时为了体现IOC和AOP机制的好处,本人利用该可视化工具完成了无线网络资源管理系统中的基站管理模块的开发。这个MIS系统是基于Castle框架中IOC和AOP机制开发的。完成的基站管理模块除了实现一些增删改、查询这些基本操作外,还实现了日志记录、权限控制和事务服务。当然后者的实现是基于IOC和AOP机制的。

【Abstract】 Along with development of the software technology, in multilayer software development project, more and more developers favor the software component which is easy to reuse and expand and which has been good tested. This means that the developers would be able to spend abundant time on analyzing and constructing business logic of an application rather than on complex programming code. Therefore the developers could abstract same type questions and extract an application framework. They can construct a distributional application program which perfectly realizes the merit of high cohesion, low coupling, strong flexibility and easy maintainability by using these frameworks. The framework has provided a new way for big granularity software reuse, which has raised software development efficiency. Thus, how to build a sturdy and stable framework is the aim of many software developers all the while.Nowadays, Microsoft Corporation’s .NET platform and Sun Corporation’s J2EE platform are two mainstream development platforms. .NET development platform has advantage of high efficiency and it is easy to use,however J2EE is especially prominent in the aspect of development framework. Regarding to this, Microsoft Corporation also brings out a series of open source frameworks one after another. Castle is an excellent open source framework under the .NET platform. Not only this framework maintains .NET platform’s superiority of fast development, but also makes the overall system construction trend to be reasonable.Castle is an open source project under .NET platform which is a complex application system framework mainly formed by integrating with other open source projects. Castle framework can help you get more done with less code and in less time, as well as simplify Web applications.This thesis mainly illustrates two core mechanisms of Castle framework - - IOC mechanism and AOP mechanism.Firstly, the historical development course of the two mechanisms and their exact manifestation in Castle framework has been discussed. Next, the advantage and superiority of two kinds of mechanisms in a concrete application has been analyzed separately. Then , a visual configuration tool for IOC and AOP is designed in order to simplify programmer’s workload when they design an application system based on IOC and AOP mechanisms of Castle, which provides a good platform for the generation of config files based on IOC and AOP. Besides, in order to test the visual config tool and show advantage of the two mechanisms, a base station management module of a wireless network resource management system which is based on the two mechanisms is developed utilizing the visual tool. Except for some basic operations (insert、delete、modify and search),this module has also realized some functions, such as log、transaction and authority services which make the MIS system more integrated. Of course, the latter functions are based on the IOC and AOP mechanisms.

【关键词】 Castle反转控制面向切面的编程日志事务
【Key words】 CastleIOCAOPLogTransaction
  • 【分类号】TP311.52
  • 【被引频次】6
  • 【下载频次】62
节点文献中: 

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

本文的引文网络