| Crosscutting concern is that the implementation code of a concern spread among other modules. In the traditional software development, there are a lot crosscutting concerns in software, crosscutting concerns in software architecture increase the complexity of software architecture, simultaneously, the implementation of crosscutting concerns often lead to scatter and tangle of source code.Aspect-Oriented Software Development (AOSD)is an emerging technology to find new modular features of software system. AOSD allows for independent description of concerns in software system. In the area of AOSD aspect is designed to achieve a particular concern of the modules. This has better support for crosscutting concerns and effectively slows down the lack of crosscutting concerns in traditional software development.This paper based on single out the crosscutting concerns in existing software code, the software was reconstructed by AOSD methods. Method of software refactoring based on the analysis of cross-cutting features was implemented by three steps as follows, the analysis of cross-cutting features, aspectual software system refactoring and aspectual source code refactoring.The contributions of this dissertation are as follows,firstly, the relationship of feature and component will be divided into direct and indirect tracing relationship, the feature model of cross-cutting features is analyzed by using the relationship.Secondly, the paper addresses the Behavioral Description protocol between components of System Structure and connector.Thirdly,A method of component in System Structure is proposed, the component that have direct tracing relations with cross-cutting features will be extracted with the pattern of aspectual component in System Structure,and its reconstruction was completedFinally, we proposed six patterns about the basic flow of aspectual source code refactoring and aspectual refactoring. |