Research and Application of Aspect-Oriented Programming Method
- Author
- WeiWei
- Advisor
- XuQuanSheng
- School
- Shenyang University of Technology
- Major
- Applied Computer Technology
- Classification
- TP311.1 Programming
- Degree
- Master's thesis
- Year
- 2005
- Downloads
- 267
- Citations
- 11
Abstract
Aspect-Oriented Programming is a new technology of software development, which is brought forward to resolve the flaws that when handling the non-core requirements which often crosscut a lot of modules, Object-Oriented Programming represents.This paper analyzes the influence of programming methodology to software development firstly, introduces the advantage and disadvantage of Object-Oriented Programming and elicits the concept of Aspect-Oriented Programming. By analyzing crosscutting concerns and the problems which are brought on by crosscutting concerns in the system, this thesis educes modularizing the crosscutting concerns and expatiates on the thinking of Aspect-Oriented Programming. This dissertation elaborates on the language criterion of AspectJ, which is a kind of language implement of AOP, and discusses the influence that dynamic and static crosscutting result in to the program with AspectJ. The paper puts forward combining the thinking of AO and unified software development process and puts the thinking of AO realize into the every step of the software development process and compares this development method with the traditional method. At last, this paper applies AOP into the development of Web adopting Struts framework. By comparing the conventional realizing project with the one adopted AO on logging and getting or releasing one connection from or to a database connection pool, we validate the feasibility and advantage of the thinking of AOP.By studying technology of AO, we modularize the crosscutting concerns, increase the code reusing and reduce the code complexity of the core concerns. We apply AO software development method to make every module’s function more specific during the system development, make object and aspect’s coupling more incompact and make the developed system more extensible.
Table of contents
Abstract 5-6
Abstract 6-10
1 Introduction 10-16
1.1 software programming methodology development overview 10 - 11
1.2 object-oriented programming 11-14
1.2.1 advantages of object-oriented programming 11-12
1.2.2 lack of object-oriented programming methods 12-14
1.3 aspect-oriented programming and international research status 14-15
1.4 the purpose of thesis research , ideas and structure 15-16
2 aspect-oriented programming 16-23
2.1 the basic idea of ??aspect-oriented programming 16
2.2 some basic concepts 16-18
2.2.1 concerns point 16-17
2.2.2 core concerns 17
2.2.3 crosscutting concerns 17-18
2.3 crosscutting concerns problems arising 18-19
2.4 modular crosscutting concerns 19-21
2.5 other modular crosscutting concerns technical 21-23
3 aspect-oriented programming method 23-49
3.1 AspectJ Overview 23-25 ??
3.1.1 AspectJ weaving in 23 < br /> 3.1.2 AspectJ in the crosscut 23-24
3.1.3 crosscutting element 24-25
3.2 JoinPoint connection point 25-30
3.2.1 methods of connecting points 27-28
3.2.2 constructor connection point 28
3.2.3 exception handling execution join point 28 -29
3.2.4 attribute access point 29-30
3.2.5 notification execution join point 30
3.3 Pointcut pointcut 30 - 40
3.3.1 pointcuts wildcard 31-32
3.3.2 Signature syntax 32-36
3.3.3 classification starting point 36-40
3.4 Advice notify 40-44
3.4.1 notification structural 41-42
3.4.2 before notification 42
3.4.3 after notification 42-43
3.4.4 around notice 43-44
3.5 static crosscutting 44-47 <br / > 3.5.1 members introduced 44-45
3.5.2 modify the class hierarchy 45-46
3.5.3 compile-time errors and warnings 46 <br / > 3.5.4 abnormal softening 46-47
3.6 Aspect definition 47-48
3.7 Summary 48-49
4 aspect-oriented unified Process software development 49-56
4.1 requirements Analysis 49-51
4.2 system analysis 51-52
4.3 system design 52-54
4.4 system implementation 54-55
4.5 system test 55
4.6 Summary 55-56
5 aspect-oriented technology in the specific project application 56-75
5.1 Struts framework based on MVC pattern 56-57
5.2 Struts framework components 57-59 < br /> 5.2.1 controller (Controller) 58
5.2.2 model (Model) 58
5.2.3 view (View) 58-59
5.3 Struts framework in Longkou project application 59-60
5.4 logging in the application of AOP implementation 60-64
5.5 AOP technology in the database connection the application pool 64-73
5.5.1 data persistence framework 64-66
5.5.2 Longkou project data access persistence framework 66-69
5.5.3 data connection from the connection pool request and release the traditional solutions 69-70
5.5.4 connection pool from the data request and release connections AOP solution 70-73
5.6 AOP technology and OOP technology comparison 73-75
6 Conclusion 75-76
References 76 -79
learning research 79-80
Thanks 80
Related dissertations
- Research on Software Reuse Based on AOP
- Development of embedded network fingerprint attendance system
- Design and Implementation of Mobile Data Mining System Based on the Precision Marketing
- The Design and Implementation of Project Budget Compilation Management System for Tianjin Pan-asia Engineering Mechanical and Electrical Equipment Consulting Co.,LTD
- The Design and Implementation of the Construction Project Open Bid Evaluation System for Weifang
- The Design and Realization of the Teaching Resource Management System Based on B/S Module
- The Design and Realization of Educational Office Managementsystem Based on J2EE
- Design and Implementation of Real Estate Information Management System
- Design and Implementation of Shanghai Electrical and Mechanical Institute Production Training System
- Design and Implementation of Uniform Interface Platform System on AOP/IoC in the Telecommunications Industry
- Design and Implementation of Human Resource Management Information System for a Company
- The Design and Implementation of Team Building Information Management System for Langfang Power Supply Company
- The Design and Implementation of the Online Exam System for Computer Application Foundation
- Design and Implementation of the Primary and Secondary School Student Status Management System Based on Web
- Design and Implementation of Enterprise Office Automation System
- Design and Implementation of Tax Revenue Management Information System
- Design and Implementation of Integrated Visualization Platform of Lightning Information
- Automatic Translation from Name-based Pointcuts to Analysis-based Pointcuts for Robust Aspects
- Research on Methods for Generating AOP Test Cases Based on Predicate Dynamic Slicing
- Application of Domain Driven Design in ERP system