Font Size: a A A

Research And Application Of Design Pattern Based On AOP

Posted on:2008-05-06Degree:MasterType:Thesis
Country:ChinaCandidate:H DengFull Text:PDF
GTID:2178360215473868Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
All the software engineers earnestly long for the goal to pursuit the farthest reuseof software. They hope that they can resolve the growing complexity of softwarethrough the decompounding and module abstraction in higher level. Hereinto,Structured Programming (SP) provides the abstraction in function level, but it doesnot hide the complexity of data. Moreover, Object-oriented Programming (OOP)provides the abstraction in object level by the longitudinal mode, and it can succeedin modularizing the core concern of software system but omits the complexcross-cutting concerns. Furthermore, Aspect-oriented Programming (AOP) providesthe abstraction in concern level by the horizontal mode, and it is a new programmingmodel, which make the modularizing cross-cutting concerns as aim in higherabstraction level.First of all, in this thesis the issue of the software reuse by existing softwaredevelopment methods is discussed, especially about the deficiencies of OOPresolving cross-cutting concerns. Then, AOP is introduced. And AspectJ and SpringAOP are presented in detail, which are both AOP extended languages based on Java.Moreover, a kind of AOP elements' relation figure is put forward, which can clearlydescribe the relations of AOP basic concepts.Next, the deficiencies of OOP design patterns resolving cross-cutting concernsare analyzed, then the AOP-based design patterns are introduced and their merits arelisted.Moreover, in this thesis Aspect Oriented Software Development (AOSD) isintroduced. It passes through the whole process of software development, includingthe requirement, analysis, design, implement and test. So it realizes themodularization of the whole system and maintains the independent of all the concernsat the same time.Furthermore, this thesis attempts to Research and Development the IntelligentBuilding Card System using aspect-oriented approach. We mode this system usingthe AOSD based on cases, bring up a lightweight system architecture based on AOP. This light weight architecture divides the system into five layers, includingrepresentation layer, business layer, persistence layer, domain object layer and aspectlayer. With Struts, Hibernate, Spring and AspectJ, this Aspect-oriented architecture issuccessfully completed, and the dependence injection of AspectJ is also implementedby the IOC mechanism of Spring, so the scalability and reusability of system are bothgreatly enhanced.Finally, we apply the AOP-based factory pattern in log, which is a very usefulattempt to apply the AOP-based design pattern to actual projects.
Keywords/Search Tags:Design Patterns based on AOP, AOSD, software reuse, AspectJ
PDF Full Text Request
Related items