引用本文:曹 璟,徐宝文,周晓宇,钱 巨,杨 彬.基于面向方面调用图的AspectJ动态通知编织优化.软件学报,2008,19(9):2218-2227
【打印本页】   【下载PDF全文】   查看/发表评论  【EndNote】   【RefMan】   【BibTex】
←前一篇|后一篇→ 过刊浏览    高级检索
本文已被:浏览 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

引用本文:
【打印本页】   【下载PDF全文】   查看/发表评论  【EndNote】   【RefMan】   【BibTex】
←前一篇|后一篇→ 过刊浏览    高级检索
本文已被:浏览次   下载  
分享到: 微信 更多
摘要:
关键词:  
DOI:
分类号:
基金项目:
Abstract:
Key words: