Font Size: a A A

Data Validation Component Based On AOP/IoC

Posted on:2008-04-13Degree:MasterType:Thesis
Country:ChinaCandidate:X F CuiFull Text:PDF
GTID:2178360212481447Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
Almost all application projects which were interacted with users need data validation function.Under normal circumstances, Programmers would use OOP techniques to solve data validation operation.However, because data validation operation is in different modules, such as user registration modules, the entry module, query Module and other relevant. With the constant expansion of the scale of software development, OOP technology can not solve the problem of data validation well.AOP technology can be seen as supplement and perfect to OOP.Programers can package operations effected different class such as date validation into some reusable module.Eliminates the confusion and fragmented code during caused by OOP method development.Enhanced code reusability and maintainability of the system.Meanwhile, IoC as AOP's support model, as a reflection of component-oriented technology, Entangling original components be separated into relatively independent of the modules and realize interactions by xml files to reduce the coupling between modules.This article upgraded data validation operation based on AOP/IoC technical, and carries on the beneficial exploration and the practice, mainly researching were below.1. Analyzed the difference and relation between OOP and the AOP .Pointed out OOP's insufficiency in operation on data validation operations, and researched how to solve these problems using AOP technology.2. Made the analysis and researching on IoC pattern, mainly studies realizes loosing the data confirmation logic with other service logic using the IOC pattern.3. Designed and realized server-end data validation function module All4Validate based on the research to AOP/IoC.This module may help the programers to solve date validatione operations in the way of using AOP/IoC in prevalent software development process.Avoid verify the code and the code scattered problems. In the end of this article, test will be applied to an actual project. Test results demonstrated that the using of AllValidate component for the J2EE/EJB programmnig can significantly reduce the amount of duplication of code and the code can address such issues. Software development can greatly take improve efficiency and lower cost, it has some practical value in project program process.
Keywords/Search Tags:AOP, IoC, Server Validation, All4Validate
PDF Full Text Request
Related items