摘要
为了把影响多个模块的行为封装到一个单独的可重用模块中,使系统拥有更好的模块化、可扩展性和可维护性,面向方面编程(AOP:AspectOrientedProgramming)是一种行之有效的方法。介绍了AOP的基本概念并举例说明SpringAOP在Web系统中权限管理开发的具体应用。实践表明,在Web系统中应用AOP后,系统的核心业务逻辑和安全权限逻辑分开,从而使系统的耦合性大大降低且易于扩展。
Aspect -oriented Programming(AOP)is a valid way to package the behaviors which impact multiple modules into an independent,reusable model,making the system more modularization,expandability and maintainability. This paper presents the basic concept of AOP and the practical application of Spring AOP of permission management in Web system.The experimental results show that the coupling of system is divided as applying AOP in Web system.
出处
《电脑开发与应用》
2006年第4期20-22,共3页
Computer Development & Applications