Font Size: a A A

Application And Research Of Aspect Oriented Programming In Student Work Management System

Posted on:2011-02-26Degree:MasterType:Thesis
Country:ChinaCandidate:Z H YangFull Text:PDF
GTID:2178330338982900Subject:Computer software and theory
Abstract/Summary:PDF Full Text Request
As a kind of excellent programming ideology, OOP (Object Oriented Programming) can solve the shortage of former procedure-oriented programming greatly. After many years'development, it has become more and more mature, and shows a great effect on modern programming. OOP can deal with the role division in a software system. With object-oriented analysis, design and realization, the developers can transform the entities in the realistic field into objects in software systems, which means they can finish the transition from reality to software spontaneously. However,it does have some flaws in some aspects, such as transaction management, log recording , authentication control and so on. In OOP programming, we usually encapsulate these contents into objects, which will produce large numbers of reduplicate codes. Although we can cut down these redundant codes with code reconstruction, the problem cannot be solved thoroughly. Under this circumstance, AOP (Aspect Oriented Programming) was born. By separating the core concerns and crosscutting concerns of a system, AOP can reduce the degrees of code coupling effectively, which makes the codes can be maintained and reused very easily.At first, from a practical application'perspective ,combining with the development process of student work management system, this article studies AOP core ideologies, fundamental concepts and advantages, comprehands popular AOP implementations, such as AsepctJ and so on, analyzes and compares their running mechanisms, and researches the comparatively prevalent J2EE development SSH(Struts2 +Spring + Hibernate) frame in depth. Due to the drawbacks of business logic codes and none business logic codes tangling with each other in traditional J2EE application programs, this article comes up with the AspectJ + SSH frame, which not only makes use of the separate layer thoughts, but also impenetrate AOP through the layers. This aspect is embodied in transaction management, authentication control and log recording of the system.Afterwards, using the student work management system as the case system, the AspectJ+SSH frame is applied successfully, and the testing job proves the feasibility of the frame. The results confirm the superiority of this frame, which can separate the business codes from none business codes, decease the coupling of modules, improves the expansibility of the system. At last, this article describes the prospect of AOP, and has a certain reference value for the J2EE development.
Keywords/Search Tags:OOP, AOP, AspectJ, SSH Frame, student work management system
PDF Full Text Request
Related items