基于AOP的Web系统事务管理的应用的研究.pdfVIP

  • 8
  • 0
  • 约 4页
  • 2015-07-25 发布于安徽
  • 举报

基于AOP的Web系统事务管理的应用的研究.pdf

第 期 计 算机 技 术 与发 展 V01.20 No.4 加10年4月 C0MPU1ERTECH口0LOGYANDDEVEL Ⅳ哐NT Apr. 2010 基于AOP的Web系统事务管理的应用研究 周改霞 ,高 尚 ,杨镇江2 (1.江苏科技大学,江苏镇江 212003;2.郑州大学,河南郑州 451000) 摘 要:面向方面的程序设计(Aspect—OrientedProgramming,A0P)是在继承 O0P基础之上进行改进而来的一种创新的 软件设计方法,通过引入方面概念,将应用程序中的核心业务逻辑同其提供支持的通用服务分离开来,从而降低代码之间 的耦合度,增加程序的灵活性和可重用性。通过简介A0P在事务处理中的应用,介绍了Sprmg框架和AOP相结合的事务 处理方法。通过采用 Spring的AOP框架,使系统的核心业务逻辑和事务管理逻辑分开,从而系统的藕合性大大降低且易 于扩展,面向方面编程提高了系统的模块性。 关键词:A0P;O0P;Web系统;事务管理;横切关注点 中图分类号:11P3l1.52 文献标识码:A 文章编号:1673—629X(2010)04—0246—04 ResearchonApplicationofTransactionManagementofW eb System BasedonAspect。-O‘rientedProgramming ZHOUGai—x ,GAOShang,YANGZhen.jiang~ (1.JiangsuUniversityofScienceandTechnology,Zhenjiang212003,China; 2.ZhengzhouUniversity,Zhengzhou451000,China) Abstract: Aspect—OrientedProgrammingisaninnovativesoftwaredesignmetl-~tbasedon00P .throughintroducingtheaspect ocncept、sepmting thecorebusinessl。gjcanditsuniversalservicesupportfrom theapplicationtod~reasethecodecouplingdI瓣 andin. ceasetheflexibilityandreusabilityofprocedure.Bypresenting AOP inthetransactionprocessing appliaction introducethemethodof Spring frameworknadAOPinresolvingthetransaction.ThroughtheLISaofSpring ’AOPframework,thecorebusinessl0gicnadrtansac- tionrnanagemelltlogicofhtes~tem hasbeenseparated,therebythecoupling degreeofsysternismuchdecreasednaditiseasyforexpan· sion.Aspect—orientedprogramming improvesthes~tem’smodularity. KeyWoIds:AoP;00P;W ebsystem;transactionmanagement;crosscuttingocncerns O 引 言 注点-2J,核心级关注点是系统要完成的业务功能;系统 计算机软件设计的重要原则,就是要清晰分离各 级关注点是完成核心级关注点所必须的配套设施 ,这 种关注点(separationofconcerns),然后分而治之,各个

文档评论(0)

1亿VIP精品文档

相关文档