首页 | 本学科首页   官方微博 | 高级检索  
     

一种策略模式的AOP实现及应用
引用本文:蒋廷耀,王训宇,关国翔,朱鹏飞. 一种策略模式的AOP实现及应用[J]. 计算机应用与软件, 2010, 27(1): 121-123
作者姓名:蒋廷耀  王训宇  关国翔  朱鹏飞
作者单位:三峡大学电气信息学院,湖北,宜昌,443002
基金项目:湖北省教育厅自然科学研究项目(Q200713005)
摘    要:基于面向方面编程(AOP)实现GoF设计模式是目前程序设计方法学的一个研究热点。针对GoF设计模式中的策略模式的传统面向对象实现方法所存在的问题,设计了一种基于AOP的实现方法,并应用到J2EE"应用服务"核心模式的实例中。分析结果表明,该方法能有效解决策略模式的传统面向对象实现方法中的混乱、间接影响、封装破坏等问题。

关 键 词:策略模式  面向方面编程  面向对象编程

AN IMPLEMENTATION AND APPLICATION OF STRATEGY PATTERN BASED ON AOP
Jiang Tingyao,Wang Xunyu,Guan Guoxiang,Zhu Pengfei. AN IMPLEMENTATION AND APPLICATION OF STRATEGY PATTERN BASED ON AOP[J]. Computer Applications and Software, 2010, 27(1): 121-123
Authors:Jiang Tingyao  Wang Xunyu  Guan Guoxiang  Zhu Pengfei
Affiliation:College of Electrical Engineering and Information Technology/a>;China Three Gorges University/a>;Yichang 443002/a>;Hubei/a>;China
Abstract:Implementation of GoF design patterns based on AOP and finding new AOP design patterns are the research hotspots in current programming methodology.In this paper,according to the problems of traditional object-orientation implementation method of strategy pattern in GoF design pattern,an implementation method based on AOP was designed,and it has been applied to Core J2EE application service patterns instances.The result of analysis showed that this method can effectively solve the problems such as confusion...
Keywords:
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号