Aspect-Oriented Programming for MVC Framework
Hui Li,GuiJun Xu,Mingji Zhou,Lingling Si
DOI: https://doi.org/10.1109/icbecs.2010.5462393
2010-04-01
Abstract:In the field of J2EE, MVC framework exists crosscutting concerns across multiple modules (e.g. logging, validation, transaction etc.) causing the code scattering and code confusion and making the system difficult to maintain and to extend. Fortunately, Aspect-Oriented Programming aims at addressing the problems of them. Aspects can be defined to modularize such concerns. In this work, we introduce the aspect-oriented programming ideas into the MVC model, and propose a model of aspect-oriented MVC framework, which extracts crosscutting concerns of going through the system to form an aspect layer and uses the configuration file to statement the point of weaving. Finally, we report the results of the framework of the feasibility and superiority by an actual project development.