Optimizing AspectJ Dynamic Advices Weaving Based on Aspect-Oriented Call Graph
Jing CAO, Baowen Xu, Xiaoyu Zhou, Qian Ju, Bin Yang · Journal of Software · 2008
在提出一种适合ApsectJ程序分析的面向方面调用图的基础上,给出了一种AspectJ动态通知编织优化方法.该方法利用程序调用图求解调用栈,并对栈中节点进行类型推导,再将调用栈与切点匹配,根据匹配结果决定通知织入方式.实例研究结果表明,该方法精确度高,能够静态确定程序中大部分动态通知的织入点.;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.