首页 | 官方网站   微博 | 高级检索  
     

一个基于字节码迁移的动态AOP优化算法
引用本文:黄强,李敏,楼新远. 一个基于字节码迁移的动态AOP优化算法[J]. 计算机工程与设计, 2006, 27(19): 3656-3659
作者姓名:黄强  李敏  楼新远
作者单位:西南交通大学,信息科学与技术学院计算机科学与技术系,四川,成都,610031;西南交通大学,信息科学与技术学院计算机科学与技术系,四川,成都,610031;西南交通大学,信息科学与技术学院计算机科学与技术系,四川,成都,610031
摘    要:AOP通过功能方面代替对象能大幅度提高系统的复用率,系统结构简洁、清晰.静态AOP编译组织运行效率高,但需使用专用编译器进行预编译,不能与OOP兼容;动态AOP和静态AOP相比,灵活性高,且语法结构与OOP完全兼容,方便系统开发和移植.但由于动态AOP基于拦截器模式实现,且在运行时组织的特性使其效率低下,AOP组件通常为系统核心组件,对动态AOP的优化对系统性能有重要意义.提出了一种基于字节码迁移技术的动态AOP优化算法,有效提高了动态AOP性能,接近静态AOP的运行效率.

关 键 词:AOP  功能方面  拦截器  组织  字节码迁移
文章编号:1000-7024(2006)19-3656-04
收稿时间:2005-08-07
修稿时间:2005-08-07

Optimizing algorithm of dynamic AOP based on bytecode transformation
HUANG Qiang,LI Min,LOU Xin-yuan. Optimizing algorithm of dynamic AOP based on bytecode transformation[J]. Computer Engineering and Design, 2006, 27(19): 3656-3659
Authors:HUANG Qiang  LI Min  LOU Xin-yuan
Affiliation:Department of Computer Science and Technology, College of Information Science and Technology, Southwest Jiaotong University, Chengdu 610031, China
Abstract:Byusingaspectinsteadofobject, AOP not only greatly improve the rate ofsystem reusage, but also make the system structure much more concise and clearer, Static AOP has high runtime performance because it is weaving when compiling, but uses special compiler when compling programs. So it cannot be compatible with OOP. Comparing with static AOP, dynamic AOP has high agility, and its syntax structures are entirely compatible with OOP. Because of the two the systems based on it can be developed and transplanted easily. But dynamic AOP is implemented through interceptor pattern and will be weaving during the running time, thus results in low runtime performance. Usually the AOP components are core components of the system, so the optimization of dynamic AOP will be meaningful for improving the system performance . An optimization algorithm based on bytecode transformation technology is introduced. This algorithm effectively improve the performance of dynamic AOP, and its runtime performance is close to that of static AOP when optimizing the static configuration.
Keywords:AOP
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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

京公网安备 11010802026262号