首页 | 本学科首页   官方微博 | 高级检索  
相似文献
 共查询到19条相似文献,搜索用时 125 毫秒
1.
面向方面的编程(AOP)是一种新的编程技术,它弥补了面向对象的编程(OOP)在跨越模块行为上的不足。AOP引进了Aspect,它将影响多个类的行为封装到一个可重用模块中,它允许程序员对横切关注点进行模块化,从而消除了OOP引起的代码混乱和分散问题,增强了系统的可维护性和代码的重用性。该文分析传统权限控制、事务控制的实现方法,并研究了在AOP下权限控制、事务控制的实现方法从而为AOP技术在项目中的应用提供一定的参考。  相似文献   

2.
面向方面的编程(AOP)是一种新的编程技术,它弥补了面向对象的编程(OOP)在跨越模块行为上的不足。AOP引进了Aspect,它将影响多个类的行为封装到一个可重用模块中,它允许程序员对横切关注点进行模块化,从而消除了OOP引起的代码混乱和分散问题.增强了系统的可维护性和代码的重用性乞该文分析传统权限控制、事务控制的实现方法,并研究了在AOP下权限控制、事务控制的实现方法从而为AOP技术在项目中的应用提供一定的参考。  相似文献   

3.
Spring 3.x的事务处理机制的研究比较   总被引:1,自引:0,他引:1  
Spring提供了多样化的事务编程支持,包括编程式事务和声明式事务。针对JDBC的事务处理对各类实现方式进行了介绍,并对实现效率进行了比较。当事务处理量少时,可以考虑用基于JDBC模板的编程式事务,当事务涉及量大时建议用基于@Transactional注解的声明式事务。  相似文献   

4.
基于WCF的事务处理提供了对事物的基本支持及管理,通过对事务流的启用、传播、事务提交和表决的声明性配置,使服务参与到事务中去,开发者能够轻松实现声明式事务编程。  相似文献   

5.
Java技术     
透明 《程序员》2005,(3):11-11
当我们正在聆听除夕夜的鞭炮声时,IBM developerWorks 网站的Java 频道推出了一个新的系列文章:AOP@Work。新栏目的第一篇文章就对目前 Java 世界的各种主要 AOP 产品做了一个综合评测,从切入点声明,方面定义、语法、语义、语言机制、开发环境等诸方面比较了 AspectJ、AspectWerkz、JBoss AOP 和 Spring AOP 等流行产品的优劣。从目前的情况来看,AspectJ 与AspectWerkz 两个项目合并之后的作品AspectJ 5很可能是未来一段时间内最出色的 AOP 产品,并且与 Eclipse 也将有最完美的契合;而 Spring AOP 由于与 SpringloC 容器很好地结合,并且充分利用  相似文献   

6.
依赖注入指根据系统配置文件中定义的组建间的依赖关系,将被调用组建实例化,并注入到调用组建之中。IOC/AOP要解决的是模块之间调用的依赖问题。传统J2EE事物实现使用冗余的JDBC模板代码,而利用IOC/AOP机制可以委托实现事物管理消除冗余的模板代码,方便地在不同事务逻辑之间切换。  相似文献   

7.
面向方面编程(AOP)是一种新的编程技术,它弥补了面向对象编程(OOP)在跨越模块行为上的不足,AOP引进了Aspect,允许程序员对横切关注点进行模块化,增强了系统的可维护性和代码的重用性。该文介绍了AOP的关键概念和开发流程,给出了AOP的原理和AOP的JBoss实现,并说明了AOP的优点和有待于进一步研究的问题。  相似文献   

8.
AOP 是一种编程范式,是软件工程的一种革新性思考.它通过引进Aspect,将影响多个类的行为模块化,从而开发出更健壮、更易于理解和扩展的系统.首先阐述了AOP的基本思想,给出AOP的实现机制,然后简单介绍了AOP的具体实现AspectJ,并结合实际用例展示了怎样用AOP对系统扩展,最后总结了OOP与AOP的关系以及AOP目前还需要解决的问题.  相似文献   

9.
面向方面编程(AOP)技术能够有效提高软件系统的可维护性、复用性和可扩展性,PHP语言是当前最流行的脚本语言之一。分析了主流语言平台下的AOP实现策略,提出了基于PHP语言的AOP实现目标和实现原理,还描述了应用AOP技术的软件系统结构和核心文件,并设计了相应的AOP支持类。最后通过实例演示该AOP技术的用法,程序结果表明该AOP实现是有效的。  相似文献   

10.
面向方面的编程的研究与实现   总被引:15,自引:1,他引:14  
面向方面的编程(AOP)是一种新的编程技术,它弥补了面向对象的编程(OOP)在跨越模块行为上的不足。 AOP 引进了Aspect,它将影响多个类的行为封装到一个可重用模块中,它允许程序员对横切关注点进行模块化,从而消除了OOP引起的代码混乱和分散问题,增强了系统的可维护性和代码的重用性。首先进行了AOP与OOP的比较,给出了AOP的原理和AOP的JBoss实现,最后介绍AOP在设计模式中的应用,并说明了使用它所带来的设计益处以及在应用AOP中应注意的问题。  相似文献   

11.
面向方面的程序设计(Aspect—Oriented Programming,AOP)是在继承OOP基础之上进行改进而来的一种创新的软件设计方法,通过引入方面概念,将应用程序中的核心业务逻辑同其提供支持的通用服务分离开来,从而降低代码之间的耦合度,增加程序的灵活性和可重用性。通过简介AOP在事务处理中的应用,介绍了Spring框架和AOP相结合的事务处理方法。通过采用Spring的AOP框架,使系统的核心业务逻辑和事务管理逻辑分开,从而系统的藕合性大大降低且易于扩展,面向方面编程提高了系统的模块性。  相似文献   

12.
朱惠中  陈昊鹏 《计算机工程》2004,30(Z1):118-119
介绍了AOP的基本思想,通过AOP在EJB安全授权、事务处理中的应用阐明TAOP的优点。  相似文献   

13.
介绍了基于面向方面编程(AOP)基本思想,分析了B/S多层架构中面向对象编程所面临的困境,介绍如何将AOP思想应用于B/S多层架构中的业务层,相比纯面向对象的实现突出显示了AOP在业务层事务处理上优越性。它主要体现在两个方面:系统架构清晰,可读性、复用性、扩展性增强;降低系统的耦合性,有利于团队成员分工合作,减少主业务开发人员负担。  相似文献   

14.
Server‐side component models such as Enterprise JavaBeans (EJB) add powerful abstractions to the bare ‘business objects’ layer in order to support a clean separation of server‐side application logic from other concerns such as distribution, security, transaction management and persistence. An improved separation of concerns is also the main goal of aspect‐oriented programming (AOP). This paper compares the two approaches and reasons about the possibility of substituting (parts of) component models using AOP mechanisms. We conclude that AOP is a promising approach to eliminate important shortcomings of the container‐based component approach. However, our analysis of concrete aspect‐oriented languages shows that current AOP technology is not yet mature enough to supersede component models. Copyright © 2003 John Wiley & Sons, Ltd.  相似文献   

15.
与面向时象编程相比而言,AOP依旧是一个极其新颖的概念.AOP是OOP的延续,是Aspect Oriented Programming 的缩写,意思是面向方面编程.AOP实际是GoF设计模式的延续,设计模式孜孜不倦追求的是调用者和被调用者之间的解耦,AOP可以说也是这种目标的一种实现.通过切面,我们可以将系统中各个不同层次上的问题隔离开来,实现统一集约式处理.各切面只需集中于自己领域内的逻辑实现.这一方面使得开发逻辑更加清晰,专业化分工更加易于进行;另一方面,由于切面的隔离,降低了耦合性,就可以在不同的应用中将各个切面组合使用,从而使得代码可重用性大大增强.  相似文献   

16.
《Information Sciences》2006,176(18):2642-2672
In this paper, we propose and formalize a rule based knowledge transaction model for mobile environments. Our model integrates the features of both mobile environments and intelligent agents. We use logic programming as a mathematic tool and formal specification method to study knowledge transaction in mobile environments. Our knowledge transaction model has the following major advantages: (1) It can be used for knowledge transaction representation, formalization and knowledge reasoning in mobile environments. (2) It is knowledge oriented and has a declarative semantics inherited from logic programming. (3) It is a formalization that can be applied to general problem domains. We show that our model can be used for knowledge transaction representation, formalization and knowledge reasoning in mobile environments.  相似文献   

17.
Transaction management is a known crosscutting concern. Previous research has been conducted to express this concern as an aspect. However, such work has used general-purpose aspect languages which lack a formal foundation, and most importantly are unable to express advanced models of transaction management. In this paper, we propose a domain-specific aspect language for advanced transaction management, called KALA, that overcomes these limitations. First, KALA is based on a recognized formalism for the domain of advanced transaction management, called ACTA. Second, as a consequence of being based on the ACTA formalism, KALA covers a wide variety of models for transaction management. Finally, being a domain-specific aspect language, KALA allows programmers to express their needs at a higher level of abstraction than what is achieved with general-purpose aspect languages. This paper reports on the design of KALA and its implementation over Java, based on the Reflex AOP kernel for domain-specific aspect languages.  相似文献   

18.
在实验室预约管理工作中,手工操作效率低、出错率高,而使用成品软件难以进行功能扩展与二次开发。针对这种情况,以浙江工业大学经济管理实验教学中心为背景,利用AOP面向切面技术实现能够动态检测预约冲突并满足实际应用需求的新型实验室预约系统。系统基于MVC设计模式,通过异常处理与事务管理机制检测预约冲突,并在运行时将检测程序以AOP切面方式嵌入业务处理流程中,对预约操作实行动态拦截,实现预约冲突的自动化检测与处理。系统提供线上预约与信息管理服务,便于功能扩展与数据对接,其开发技术具有通用性,对优化架构设计提升系统灵活性有一定的借鉴作用。  相似文献   

19.
Transactions and updates in deductive databases   总被引:2,自引:0,他引:2  
In this paper, we develop a new approach that provides a smooth integration of extensional updates and declarative query languages for deductive databases. The approach is based on a declarative specification of updates in rule bodies. Updates are not executed as soon as evaluated. Instead, they are collected and then applied to the database when the query evaluation is completed. We call this approach nonimmediate update semantics. We provide a top-down and equivalent bottom-up semantics which reflect the corresponding computation models. We also package set of updates into transactions and we provide a formal semantics for transactions. Then, in order to handle complex transactions, we extend the transaction language with control constructors still preserving formal semantics and semantics equivalence  相似文献   

设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号