首页 | 本学科首页   官方微博 | 高级检索  
相似文献
 共查询到19条相似文献,搜索用时 250 毫秒
1.
为分离生物信息系统中分布式数据加载等大量非系统核心的边缘逻辑处理过程,提出了基于springAOP技术框架的生物通用数据加载边缘逻辑分离方法.介绍了spring面向切面编程和依赖注入的内在机制和AOP基于spring框架实现的一般方法及步骤,重点阐述了spring AOP在生物信息系统边缘逻辑处理问题的研究与实现.应用结果表明,spring AOP 技术有效地将数据加载等边缘逻辑与生物信息系统核心主逻辑分离,使生物信息系统更专注于自身核心业务逻辑.  相似文献   

2.
越来越多的系统开始使用AOP(面向切面编程),面向切面编程越来越重要,但是AOP的连接点丢失问题一直未能很好的解决,该文针对使用Spring框架的系统中日志生成业务设计了一种连接点检测器,可以遍历所有连接点,并在数据库中维护连接点状态。  相似文献   

3.
在《程序员》前几次的文章中,我们陆续向大家介绍了Spring提供的AOP功能以及具有“主动性”的around类型的执行逻辑,这次作者将为我们讲述一种依赖于该执行逻辑的设计模式,加深我们对面向切面(AO)这一比较新的领域的理解。  相似文献   

4.
Spring AOP模块直接将面向切面的编程功能集成到了Spring框架中,所以可以很容易的使Spring框架管理的任何对象支持AOP。该文以实际项目为例,阐述了利用AOP的技术优势和应用价值。  相似文献   

5.
文章以网络游戏对战平台为背景,介绍了设计模式在网络游戏中的应用。在传统的面向过程或者面向对象的编程中,各个不同的角色从产生到销毁的全过程,主要使用数组或链表或集合来进行控制,程序逻辑复杂而不易修改和扩展。该文引入了设计模式的概念,使得控制游戏中各个角色的操作更加简便、更加富有逻辑性。该文对从事设计模式研究、游戏制作的技术人员有一定帮助,实现代码采用微软的C#语言。  相似文献   

6.
在《程序员》前几次的文章中,我们陆续向大家介绍了Spring提供的AOP功能以及具有“主动性”的around类型的执行逻辑,这次作者将为我们讲述一种依赖于该执行逻辑的设计模式,加深我们对面向切面(A0)这一比较新的领域的理解。  相似文献   

7.
面向方面编程(AOP)是面向对象编程(OOP)的扩展和延续,能够很好地解决横切关注点问题,实现了业务逻辑与非业务逻辑的解耦合.目前大部分研究还主要是把AOP作为一种程序设计方法加以研究的,实际上,AOP对于软件设计和开发过程的影响是全面的.因此在AOP的基础上,从概念、规约、实现三个视角定义了方面,并从概念层、规约层、实现层三个层次研究了面向方面软件开发(AOSD)的开发过程,在Spring框架下给出了J2EE企业应用系统的实现过程,与只使用OOP方法相比,不但简化了设计,也使代码更具可读性.  相似文献   

8.
沈凯 《计算机时代》2010,(11):56-58
面向切面的程序设计(Aspect—Oriented Programming,AOP)是在继承OOP的基础上进行改进的一种创新的软件设计方法,通过引入切面概念,将应用程序中的核心业务逻辑与其提供支持的通用服务分离开来,从而降低代码之间的耦合度,增加程序的灵活性和可重用性。文章从面向切面开发(AOP)的概念出发,阐述了AOP的优点与作用,解释了实现AOP的Java射机制和动态代理机制,编写了范例代码,并论证了实现AOP的基本方法。  相似文献   

9.
设计了一种针对多媒体彩铃项目Portal系统的统一开发框架,并举例说明该框架在多媒体彩铃业务中的应用.UP(Unify Portal)框架基于传统的Spring+Hibernate开发框架,延续并优化了分层的体系结构;使用了面向接口编程和AOP(Aspect Oriented Programming,面向切面编程)的设...  相似文献   

10.
一种策略模式的AOP实现及应用   总被引:1,自引:0,他引:1  
基于面向方面编程(AOP)实现GoF设计模式是目前程序设计方法学的一个研究热点。针对GoF设计模式中的策略模式的传统面向对象实现方法所存在的问题,设计了一种基于AOP的实现方法,并应用到J2EE"应用服务"核心模式的实例中。分析结果表明,该方法能有效解决策略模式的传统面向对象实现方法中的混乱、间接影响、封装破坏等问题。  相似文献   

11.
赵艳  ;刘同明 《微机发展》2008,(10):225-229
面向方面编程(AOP)是面向对象编程(00P)的扩展和延续,能够很好地解决横切关注点问题,实现了业务逻辑与非业务逻辑的解耦合。目前大部分研究还主要是把AOP作为一种程序设计方法加以研究的,实际上,AOP对于软件设计和开发过程的影响是全面的。因此在AOP的基础上,从概念、规约、实现三个视角定义了方面,并从概念层、规约层、实现层三个层次研究了面向方面软件开发(AOSD)的开发过程,在Spring框架下给出了J2EE企业应用系统的实现过程,与只使用OOP方法相比,不但简化了设计,也使代码更具可读性。  相似文献   

12.
针对面向对象编程(OOP)中横切关注点与业务逻辑代码纠缠的现象,提出了一种面向方面编程(AOP)的统一建模方法以弥补OOP的不足;该基于UML的方面建模方法从AOP与OOP技术存在的问题出发,通过基于UML的AOP建模方法研究,提高了软件设计的模块化,增强了代码的重用性、维护性;最后,以银行系统ATM中的取款业务的建模为例来描述用UML建模过程,为AOP建模提供了一种新的研究思路。  相似文献   

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

14.
基于UML的面向方面建模方法   总被引:10,自引:0,他引:10  
刘瑞成  张立臣 《计算机科学》2005,32(10):204-209
面向方面编程(AOP)技术通过横切关注来实现软件系统.面向方面建模可通过扩展UML来实现,在元模型层次上设计面向方面软件开发(AOSD)模型框架.从结构建模、行为建模、方面织入以及代码产生几个方面实现面向方面的建模方法.利用UML类图实现方面的结构模型,方面与核心组件及方面之间的静态模型关系.协作图表达方面与核心组件及方面之间的动态行为,并通过状态图细化方面和核心组件的动态行为,实现状态图的方面与核心组件及方面之间的织入关系,最终实现方面代码的自动生成.基于UML的方面建模填补AOP与OOP技术之间的空白,提高软件设计的模块化,增强代码的重用性、维护性.  相似文献   

15.
Aspect-oriented programming (AOP) seeks to improve software modularity via the separation of cross-cutting concerns. AOP proponents often advocate a development strategy where programmers write the main application (base code), ignoring cross-cutting concerns, and then aspect programmers, domain experts in their specific concerns, weave in the logic for these more specialized cross-cutting concerns. This purely oblivious strategy, however, has empirically been shown to tightly couple aspects to base code in many cases, hindering aspect modularity and reuse. In essence, the more intricate the weaving between the cross-cutting concern and the base code (lexically and/or semantically), the harder it becomes to: (a) robustly specify how to weave the aspects in at the required points, (b) capture interactions between aspects and base code, and (c) preserve the correct weaving as the base code evolves.We propose an alternate methodology, termed cooperative aspect-oriented programming (Co-AOP), where complete lexical separation of concerns is not taken as an absolute requirement. Instead, cross-cutting concerns are explicitly modeled as abstract interfaces through explicit join points (EJPs). Programmers specify where these interfaces interact with base code either through explicit lexical references or via traditional oblivious aspects. This explicit awareness allows base code and aspects to cooperate in ways that were previously not possible: arbitrary blocks of code can be advised, advice can be explicitly parameterized, base code can guide aspects in where to apply advice, and aspects can statically enforce new constraints upon the base code that they advise. These new techniques allow aspect modularity and program safety to increase, and bring us towards a cooperative AOP paradigm.We illustrate our methodology via an example on transactions, and also give an initial evaluation of cooperative AOP through an empirical study on program extensibility comparing both the traditional and cooperative AOP methodologies. Initial results show that cooperative AOP techniques result in code that is less complex with lower overall coupling, facilitating extensibility.  相似文献   

16.
面向切面编程(AOP,Aspect Oriented Programming)中面向对象编程(OOP)的一种扩展技术,能够很好的解决横切关注点问题和相关的设计难题.从而对实现进行解耦合。本文在研究AOP和传统访问控制方法的基础上,提出了一种基于SpringAOP框架的Web访问控制实现技术。  相似文献   

17.
面向切面编程(AOP,Aspect Oriented Programming)是面向对象编程(OOP)的一种扩展技术,能够很好的解决横切关注点问题和相关的设计难题,从而对实现进行解耦合。本文在研究AOP和传统访问控制方法的基础上,提出了一种基于Spring AOP框架的Web访问控制实现技术。  相似文献   

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

19.
The support for software reuse has been a major goal in the design of programming languages. This goal, however, has proven difficult to reach, being only partially enabled by current software tools. In particular, reuse is not fully supported by object‐oriented programming (OOP). Aspect‐oriented programming (AOP) has introduced new operators that extend OOP, enabling a superior support for reusability. However, AOP operators exhibit limitations in supporting software reuse and more powerful constructs are still required. We consider the ability to define software in an independent manner as the key construct to enable systematic software reuse. To bridge the gap between independence and practical software tools, we have developed the concept of Independent and Pluggable Software Unit (PU), a construct that supports the definition of software topologies. In this paper, we compare PUs with AOP in their support for reusable software. To enable comparison, we employ some well described problems addressed by Software Design Patterns (SDPs). We provide PU and AOP versions of several SDPs, including, Observer, Composite, Command, Chain of Responsibility, and Proxy. In particular, we show that, whereas PUs provide a unified representation of design patterns, AOP representations do not achieve this unification. We also show that AOP solutions do not promote independent and reusable software.Copyright © 2013 John Wiley & Sons, Ltd.  相似文献   

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

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