loading...
 This Article 
   
 Share 
   
 Bibliographic References 
   
 Add to: 
 
Digg
Furl
Spurl
Blink
Simpy
Google
Del.icio.us
Y!MyWeb
 
 Search 
   
29th International Conference on Software Engineering (ICSE'07)
Automated Inference of Pointcuts in Aspect-Oriented Refactoring
Minneapolis, Minnesota
May 20-May 26
ISBN: 0-7695-2828-7
Prasanth Anbalagan, North Carolina State University, USA
Tao Xie, North Carolina State University, USA
Software refactoring is the process of reorganizing the internal structure of code while preserving the external behavior. Aspect-Oriented Programming (AOP) provides new modularization of software systems by encapsulating crosscutting concerns. Based on these two techniques, aspect-oriented (AO) refactoring restructures crosscutting elements in code. AO refactoring includes two steps: aspect mining (identification of aspect candidates in code) and as- pect refactoring (semantic-preserving transformation to mi- grate the aspect-candidate code to AO code). Aspect refac- toring clusters similar join points together for the aspect candidates and encapsulates each cluster with an effective pointcut definition.

With the increase in size of the code and crosscutting concerns, it is tedious to manually identify aspects and their corresponding join points, cluster the join points, and infer pointcut expressions. Therefore, there is a need to auto- mate the process of AO refactoring. This paper proposes an automated approach that identifies aspect candidates in code and infers pointcut expressions for these aspects. Our approach mines for aspect candidates, identifies the join points for the aspect candidates, clusters the join points, and infers an effective pointcut expression for each clus- ter of join points. The approach also provides an addi- tional testing mechanismto ensure that the inferred pointcut expressions are of correct strength. The empirical results show that our approach helps achieve a significant reduc- tion in the total number of pointcut expressions to be used in the refactored code.

Citation:
Prasanth Anbalagan, Tao Xie, "Automated Inference of Pointcuts in Aspect-Oriented Refactoring," icse, pp.127-136, 29th International Conference on Software Engineering (ICSE'07), 2007
Usage of this product signifies your acceptance of the Terms of Use.