摘要
面向方面的程序设计(Aspect-Oriented Programming,AOP)是在继承OOP基础之上进行改进而来的一种创新的软件设计方法,通过引入方面概念,将应用程序中的核心业务逻辑同其提供支持的通用服务分离开来,从而降低代码之间的耦合度,增加程序的灵活性和可重用性。通过简介AOP在事务处理中的应用,介绍了Spring框架和AOP相结合的事务处理方法。通过采用Spring的AOP框架,使系统的核心业务逻辑和事务管理逻辑分开,从而系统的藕合性大大降低且易于扩展,面向方面编程提高了系统的模块性。
The Aspect- Oriented Programming is an innovative software design method based on OOP , through introducing the aspect concept ,seprating the core business logic and its universal service support from the application to decrease the code coupling degree and increase the flexibility and reusability of procedure, By presenting AOP in the transaction processing appliaetion introduce the method of Spring framework and AOP in resolving the transaction. Through the use of Spring'AOP framework, the core business logic and transaction mangement logic of the system has been separated, thereby the coupling degree of system is much decreased and it is easy for expansion. Aspect-oriented programming improves the system's modularity.
出处
《计算机技术与发展》
2010年第4期246-249,共4页
Computer Technology and Development
基金
江苏省自然科学基础研究课题(08KJB520003)