| 本文已被:浏览 4928次 下载 6459次 |
 码上扫一扫! |
|
|
| 基于面向方面调用图的AspectJ动态通知编织优化 |
|
曹 璟1,2, 徐宝文1,2, 周晓宇1,2, 钱 巨1,2, 杨 彬1,2
|
|
1.东南大学 计算机科学与工程学院,江苏 南京 210096;2.江苏软件质量研究所,江苏 南京 210096
|
|
| 摘要: |
| 在提出一种适合ApsectJ程序分析的面向方面调用图的基础上,给出了一种AspectJ动态通知编织优化方法.该方法利用程序调用图求解调用栈,并对栈中节点进行类型推导,再将调用栈与切点匹配,根据匹配结果决定通知织入方式.实例研究结果表明,该方法精确度高,能够静态确定程序中大部分动态通知的织入点. |
| 关键词: 通知编织 编译优化 调用图 AspectJ 面向方面程序设计 |
| DOI: |
| 分类号: |
| 基金项目:Supported by the National Natural Science Foundation of China under Grant No.60503033 (国家自然科学基金); the National Natural Science Foundation for Distinguished Young Scholar of China under Grant No.60425206 (国家杰出青年科学基金); the Natural Science Foundation of Jiangsu Province of China under Grant No.BK2006094 (江苏省自然科学基金); the High Technology Research Projects Foundation of Jiangsu Province of China under Grant No.BG2005032 (江苏省高技术研究项目) |
|
| Optimizing AspectJ Dynamic Advices Weaving Based on Aspect-Oriented Call Graph |
|
CAO Jing,XU Bao-Wen,ZHOU Xiao-Yu,QIAN Ju,YANG Bin
|
| Abstract: |
| This paper firstly presents an aspect-oriented call graph (ACG for short), then introduces an AspectJ dynamic advices weaving optimizing method based on the ACG (aspect-oriented call graph) of AspectJ programs. Our method firstly solves a call stack through the ACG and deduces the types of the nodes in the stack, then match the call stack with pointcuts, and finally decides how to weave dynamic advices based on the result of matching. A case study shows that this method has great precision and can identify most of weaving points statically. |
| Key words: advice weaving optimizing call graph AspectJ aspect-oriented programming |