Computer Engineering and Applications ›› 2008, Vol. 44 ›› Issue (7): 82-85.

• 学术探讨 • Previous Articles     Next Articles

Class modification and reflection based dynamic aspect weaving model

WANG Bin,ZHOU Liang,TAN Yun-qiao,GUI Wei-hua   

  1. College of Information Science & Engineering,Central South University,Changsha 410083,China
  • Received:2007-06-21 Revised:2007-09-17 Online:2008-03-01 Published:2008-03-01
  • Contact: WANG Bin

基于类修改和反射的动态方面编织模型

王 斌,周 亮,谭云桥,桂卫华   

  1. 中南大学 信息科学与工程学院,长沙 410083
  • 通讯作者: 王 斌

Abstract: In the aspect-oriented programming,aspect weaving is the implementation of weaving system concerns,and the weaving strategy will affect the execution efficiency,weaving granularity and modularity degree of software system.According to the requirements of aspectual component assembling platform and computing on demand middleware platform,this paper proposes a kind of Dynamic Aspect Weaving model—DAWeaver.It uses BCEL to modify class file,calls aspect component reflectively through aspect container,and supports dynamic weaving.In the end,this paper gives a prototype system and analyzes the weaved system’s performance.

摘要: 方面编织是系统关注点编织的实现部分,其优劣关系着面向方面软件系统的执行效率、编织粒度、模块化程度。依据方面化构件组装以及按需计算中间件平台需求,提出一种动态方面编织模型——DAWeaver,该模型利用BCEL修改类文件,通过方面容器反射调用方面组件,支持了编织的动态性。最后,给出该模型的原型系统,并对已编织系统作了性能分析。