Font Size: a A A

Research On Aspect-oriented Refactoring

Posted on:2009-09-15Degree:MasterType:Thesis
Country:ChinaCandidate:F Y HanFull Text:PDF
GTID:2198360248456543Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
Refactoring is a process and a set of techniques to reorganize code while preserving the external behavior,has gained popularity due to its practical value in creating agile code.But,the steps in conventional refactoring only modularize code into a clean OO implementation,and can't cope well with the problems caused by crosscutting concerns;AOP may improve the design of software,increase the reusability and implement separation of concerns.Separation of concerns is at the heart of software engineering,which not only helps to analyze and understand the software system during the design and implementation but also improves the adaptability,maintainability and reusability.This thesis introduces AOP into the refactoring,synergistically combines these two techniques to refactor crosscutting elements.First,this thesis discusses the basic knowledge of refactoring and AOP,and then proposes the aspect-oriented refactoring as their combinations to solve the cross-cutting issues in software refactoring.And this thesis analyzes the content, features and steps of aspect-oriented refactoring,which provides a theoretical foundation for the study.Second,this thesis proposes the methods to recognize and encapsulate the crosscutting concerns.The recognition and encapsulation of crosscutting concerns is an important part of aspect-oriented refactoring.This thesis studies the methods of crosscutting concerns recognition in java legacy system and crosscutting concerns encapsulation with AOP.This thesis uses the class relationship diagram to recognize the crosscutting concerns,and the results are stored and showed with the structure of the tree.And then proposes the methods to encapsulate the crosscutting concerns based on the result of the search.Because of the aspect mechanism,traditional OOP refactoring methods can not be applied absolutely in AOP.Finally,this thesis improves some classic OOP refactoring methods to adapt to AOP and discuss the self-refactoring issues of aspect mechanism in aspec.
Keywords/Search Tags:Refactoring, Aspect-Oriented Programming (AOP), Aspect-Oriented Refactoring, Crosscutting Concerns, AspectJ
PDF Full Text Request
Related items