节点文献

软件模式在权限管理系统中的应用

Application of Software Pattern in Privilege Management System

【作者】 陈强

【导师】 胡和平;

【作者基本信息】 华中科技大学 , 计算机应用技术, 2007, 硕士

【摘要】 随着面向对象技术的发展,软件的需求变得越来越复杂,软件不但要求在时间维上的可变性,也要求在空间上的可伸缩性,这就要求软件具有更好的结构。另一方面,随着越来越多优秀的人才从事软件的研究开发,使得他们产生了解决具体软件结构问题的惯例和经验,它们被称为“软件模式”。为提高软件结构的质量,软件模式是一个很好的选择,因为软件模式是许多优秀程序员的好的经验的总结,从而能够保证其解决问题的正确性和有效性。但是如何去应用软件模式,在什么环境下应用软件模式才能带来好的效果一直以来也是业界关心的问题。通过实现一个权限管理系统作为平台,介绍了目前几类重要的软件模式——构架模式,设计模式,代码模式以及软件模式应该遵循的原则,同时也简单地描述了本权限管理系统的功能需求和质量需求,展示了软件模式为满足需求的具体的应用过程、软件模式应用的具体环境以及软件模式的应用对软件结构质量的提升效果。对于构架模式,应用了分层模式、MVC模式来提升系统构架设计的质量,应用了Cache模式来提升系统的运行效率;对于设计模式,应用了单例模式、建造者模式、外观模式、工厂模式、组合模式、代理模式、模版模式、享元模式、观察者模式等九种模式来提升系统细节结构的质量、支持构架模式的应用,比如使用了享元模式和观察者模式来对Cache模式的应用提供支持;对于代码模式,在单例模式中应用了双检锁模式使得单例模式能够规避多线程情况下可能带来的多例风险。希望论文的的工作和经验能让更多的人来了解软件模式和应用软件模式,促进软件业的发展。

【Abstract】 With the development of object-oriented technology, the complexity of software has remarkably increased. Software not only require being alterable as the time changes, but also require being reformable in space. So software must have a good structure. At the other hand, as more and more smart person join software’s research and development, they find some good ways to improve software structure’s quality. These ways are called“software pattern”.To improve the quality of software, software pattern is a good choice. Because software patterns are good experience of the excellent programmers, they thus can ensure correctness and effectiveness of solving problems. But how to apply software patterns, in what context to apply them can bring good effects are problems programmers concern.Taking a privilege management system as a platform, I talked about 3 kinds of software patterns: architectural pattern ,design pattern and code pattern and some basic rules that a good software pattern must obey, and I simply described the function requirements and quality requirements of the privilege management system, so to exhibit software pattern’s application procedure of meeting requirements, the context of its application and the effectiveness its application has bring to the system. For architectural pattern, I applied Layers pattern, MVC pattern to improve architectural design, Cache pattern to improve performance of system; for design pattern, I applied 9 patterns including Singleton pattern, Builder pattern, Fa?ade pattern, Factory pattern, Composite pattern, Proxy pattern to improve detailed design and support architectural pattern, for example, I have used FlyWeight and Observer pattern to support Cache pattern; for code pattern, I applied Double Check Lock pattern to ensure just one instance for Singleton pattern. I hope my work and experiences can improve programmer’s understand of software pattern and encourage them to apply software patterns to improve the entire industry of software.

节点文献中: