[1]郭丽丽 王清心 胡建华 丁家满.应用AOP技术实现Observer模式[J].计算机技术与发展,2007,(06):70-73.
 GUO Li-li,WANG Qing-xin,HU Jian-hua,et al.Implementation of Observer Pattern with AOP[J].,2007,(06):70-73.
点击复制

应用AOP技术实现Observer模式()
分享到:

《计算机技术与发展》[ISSN:1006-6977/CN:61-1281/TN]

卷:
期数:
2007年06期
页码:
70-73
栏目:
智能、算法、系统工程
出版日期:
1900-01-01

文章信息/Info

Title:
Implementation of Observer Pattern with AOP
文章编号:
1673-629X(2007)06-0070-04
作者:
郭丽丽 王清心 胡建华 丁家满
昆明理工大学信息工程与自动化学院
Author(s):
GUO Li-li WANG Qing-xin HU Jian-hua DING Jia-man
Faculty of Information Engineering and Automation, Kunming University of Science and Technology
关键词:
AOPObserverPatternAspectJ
Keywords:
AOPobserver pattemAspectJ
分类号:
TP311
文献标志码:
A
摘要:
Observer模式被人们广泛应用(特别是在GUI应用程序中),并构成了MVC架构的关键部分。它处理复杂的问题,而在解决这类问题方面表现得相对较好。但面向对象的Observer模式实现方案中,要求先侵入系统中现有的类,然后才能支持该模式,带来了以下问题:难以理解、可重用性差、后期维护很复杂、代码不容易组合等。基于AOP技术,提出了一种可重用的Observer模式的方案,并通过与面向对象实现方案的比较,得出了AOP技术实现方案具有模块松散耦合、可重用性高等优点的结论
Abstract:
Observer pattern is the most common design pattern (especially in GUI application), and is the key part of the MVC model. However, there are some inherent flaws in the implementation of observer pattern with OOP, such as invade the class of the present system, then support this pattern, hard to understand, bad reusable, complex maintenance, not easy to composite. A reusable method to implement observer pattern based on AOP technology was presented. Compared with the object - oriented method, the advantages of AOP were addressed

相似文献/References:

[1]周改霞 高尚 杨镇江.基于AOP的Web系统事务管理的应用研究[J].计算机技术与发展,2010,(04):246.
 ZHOU Gai-xia,GAO Shang,YANG Zhen-jiang.Research on Application of Transaction Management of Web System Based on Aspect- Oriented Programming[J].,2010,(06):246.
[2]李鑫 马光思.基于J2EE框架构建Web应用的研究与实现[J].计算机技术与发展,2009,(11):234.
 LI Xin,MA Guang-si.Research and Implementation of Constructing Web Application Based on J2EE Framework[J].,2009,(06):234.
[3]陈成 李行.基于AOP的MDA模型转换[J].计算机技术与发展,2008,(07):87.
 CI-IEN Cheng,LI Xing.AOP- Based MDA Model Transformation[J].,2008,(06):87.
[4]曹晓利 郭顺生.AOP技术及其在J2EE中的动态代理实现[J].计算机技术与发展,2008,(11):120.
 CAO Xiao-li,GUO Shun-sheng.AOP Technology and Its Dynamic Proxy Implementation in J2EE[J].,2008,(06):120.
[5]马季兰 刘勇.嵌入式Linux操作系统的实时性研究[J].计算机技术与发展,2007,(08):80.
 MA Ji-lan,LIU Yong.Research of Real Time Performance for Embedded Linux Operating System[J].,2007,(06):80.
[6]范后军 魏慧琴.面向方面编程在B/S多层架构中业务层的应用[J].计算机技术与发展,2007,(04):83.
 FAN Hou-jun,WEI Hui-qin.Application of AOP in Business Layer of B/S Multilayer[J].,2007,(06):83.
[7]魏学松 张育平.IOC框架的研究与设计[J].计算机技术与发展,2006,(03):213.
 WEI Xue-song,ZHANG Yu-ping.Research and Realization of IOC Framework[J].,2006,(06):213.
[8]潘晔 任广伟.基于AOSD的Web架构规划[J].计算机技术与发展,2006,(12):52.
 PAN Ye,REN Guang-wei.Web Structure Programming Based on AOSD[J].,2006,(06):52.
[9]杨光宏 朱行林 黄聪敏.涉密应用系统安全审计解决方案[J].计算机技术与发展,2011,(03):178.
 YANG Guang-hong,ZHU Xing-lin,HUANG Cong-min.A Security Audit Solution to Classified Applications[J].,2011,(06):178.
[10]叶婷婷 王映辉.一种基于AOP的构件合约化测试方法与实现[J].计算机技术与发展,2012,(06):71.
 YE Ting-ting,WANG Ying-hui.A Contract Testing Method and Implementation Based on AOP for Component Software[J].,2012,(06):71.

备注/Memo

备注/Memo:
联合国计划发展署UNDP403项目资助郭丽丽(1981-),女,江苏盐城人,硕士研究生,研究方向为Web技术与数据库; 王清心,教授,硕士生导师,主要研究方向为Web及数据库技术
更新日期/Last Update: 1900-01-01