Data Validation Component Based on AOP/IoC

Author
CuiXiaoFeng
Advisor
ZhaoGuangLi
School
Dalian Maritime University
Major
Applied Computer Technology
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2007
Downloads
92
Citations
1

Request the full text

Abstract

Almost all application projects will be used to interact with the user data validation. Under normal circumstances, the developers will use OOP (object-oriented programming) technology for data verification operation. However, due to the realization of the data verification operation is dispersed in multiple modules, such as user registration module, login module, query module will need data verification operations, and are becoming increasingly complex as the scale of software development continues to magnify OOP techniques can not be a good solution to the problem of data validation. AOP (Aspect Oriented Programming) as a supplement to and perfecting of OOP, so developers can affect the operation of multiple classes of data validation package into a reusable module, thereby eliminating the OOP code caused confusion and dispersed code problems, and enhance the system's maintainability and reusability of code. Meanwhile, IoC and AOP each other auxiliary mode, as a reflection of component-oriented technology, the original building blocks intertwined split into multiple relatively independent class, and between classes or modules via the configuration file associated with reducing the coupling between the various modules of the software system. AOP / IoC technology to improve data validation operation is a useful exploration and practice, do the following work; 1. OOP and AOP differences and connections, and pointed out the OOP the solve data verification operation in the presence of insufficient, and how to use the the AOP technology to solve these problems. 2. The IoC pattern analysis and research, its focus is the study of how data validation logic and other business logic between loosely coupled using loC modes. 3. Based AOP / IoC research, design and to achieve functional components of a server-side data validation All4Validate. The components can help developers use AOP / IoC way to solve the data validation code to dispersed and code confusion prevalent in software project development process. In the final testing of the components and its application to actual projects. The test results prove that a data validation project J2EE/EJB using All4Validate component, can significantly reduce the amount of code written, can solve the problem of code duplication and code confusion. Can greatly improve the efficiency of software development, reduce development costs, has some practical value.