aop

  • n.阳极断电图
  • 网络面向方面编程(Aspect-Oriented Programming);面向切面编程;面向方面的编程

aopaop

aop

面向方面编程(Aspect-Oriented Programming)

面向方面编程 (AOP) 提供从另一个角度来考虑程序结构以完善面向对象编程(OOP)。 面向对象将应用程序分解成 各个层次 …

面向切面编程

面向切面编程aop)是对面向对象编程(oop)的补充,面向对象编程将程序分解成各个层次的对象,面向切面编程将程序运 …

面向方面的编程

  摘要 面向方面的编程(AOP)是一种新的编程技术,它弥补了面向对象的编程(OOP)在跨越模块行为上的不足。AOP引进了Aspect…

1
AOP addresses a problem space that object-oriented and other procedural languages have never been able to deal with. AOP解决了面向对象和其它过程性语言未能处理的一块问题空间。
2
However, I would still like to ask, would they have been able to avoid some of these design tradeoffs had they used AOP? 但我还是要问一问,如果使用AOP的话,能否避免其中一部分设计取舍呢?
3
Even Javascript, once the bane of every web developer's life, has powerful idioms allowing AOP to be implemented easily. 即便是曾经祸害过每个开发者生活的Javascript,也有强大的方言能够方便地实现AOP。
4
The criteria defined here should also make it easier for you to evaluate upcoming releases of AOP tools and features. 这里定义的指标还会让读者更加容易地评估即将推出的AOP工具和特性。
5
As it was with object-oriented programming, we've got to spend a little time accumulating the wisdom it takes to use AOP effectively. 因为它使用了面向对象编程,所以我们必须花费一些时间积累相关知识以更有效地使用AOP。
6
One of the best practices of getting most out of AOP is to use to metadata to capture join points for cross-cutting concerns. 从AOP获得大部分好处的最佳实践之一就是使用元数据去为横向关注点(cross-cuttingconcerns)捕获连接点(joinpoints)。
7
Be careful to benchmark before making a decision on this basis: the overhead of Spring AOP proxying is all but undetectable in normal use. 在这个基础上做决定前要小心基准:SpringAOP代理的负载在通常使用中是无法觉察到的。
8
When you're aiming for separation of concerns, transparency, and flexibility, aspect-oriented programming (AOP) is often the right answer. 如果目的是分离关注点、透明性和灵活性,那么面向方面的编程(AOP)通常就是正确的答案。
9
I'd like to talk about some of the ways that I think AOP can be (and has been) used effectively. 我想谈论一些我认为AOP可以被(或已经被)有效使用的方法。
10
Transition logic cross-cuts all intercepting filters and as you might have guessed AOP yet again comes to mind as the technology of choice. 转移逻辑横贯所有拦截过滤器,你可能已经猜到了,AOP再次成为所选技术。
11
At the heart of each of the AOP tools is a join point model, which provides a means of identifying where the crosscutting is happening. 位于每个AOP工具核心的是连接点模型,它提供了一种机制,可以识别出在哪里发生了横切。
12
For a more comprehensive review of the AOP approach, consult the resources provided in the "References" section at the end of this article. 为了更加完整的回顾AOP方法,请您参考本文最后“引用”一节中所提供的资源。
13
It is possible to use both AspectJ and Spring AOP simultaneously: they do not conflict. 同时使用AspectJ和SpringAOP是可能的:它们并不冲突。
14
Using an AOP language, we might be able to test application code automatically without disturbing the code. 使用AOP语言,我们可以自动测试应用程序代码而不会对代码带来干扰。
15
Cedric Beust described Aspect Oriented Programming (AOP) as "a great idea that will remain the privilege of a few expert developers" . CedricBeust将面向方面编程(AOP)描述为“保留少数开发内行特权的一个绝佳主意”。
16
As shown by the figures above, one of the key differences among the AOP tools is how each one approaches aspect declaration. 正如上面的图所展示的,AOP工具之间的关键差异就是处理方面声明的方式。
17
Writing good pointcuts is key to mastering AOP, although it is often a struggle for newcomers. 编写好的切入点是掌握好AOP的关键,尽管这对于新手来说通常不是一件容易的事。
18
Of course coding the application is not as hard as in former times, when AOP and Spring did not exist. 当然给应用程序编码并不会像以前那样复杂,那时AOP与Spring尚并不存在。
19
No AOP knowledge is required either to read this article or to get started using Aspects for MDD. 阅读这篇文章和开始使用AspectsforMDD是不需要AOP相关知识的。
20
The challenge of choosing an AOP tool for your project is in comparing the trade-offs of each approach without getting lost in them. 为项目选择一个AOP工具所面临的难题在于比较每种工具的优劣,同时不要让自己迷失其中。
21
In the case of Spring AOP (all versions), the only joinpoint supported is the execution of a public method. 在SpringAOP(所有版本)的案例中,唯一支持的连接点是公有方法的执行。
22
As you can see, the principle for supplying annotation is the same across the various AOP systems, although the syntax differs. 可以看出,提供注释的原理在不同的AOP系统中是相同的,尽管语法不一样。
23
In a metadata-fortified AOP implementation, you map core concerns to classes just as you have all along. 在通过元数据增强的AOP实现中,就像平时做的那样,可以将核心关注点映射到类。
24
To finish off this quick overview about AOP, let me present a few specific terms and clarify their intended meaning. 为了完成此次有关AOP的快速概述,我将介绍一些特定术语并解释它们各自的含义。
25
Therefore, an AOP program needs to be compiled as a unit rather than one class at a time. 因此,需要将AOP程序作为一个单元来编译,而不能每次编译一个类。
26
The conciseness of a tool's aspect declarations should help determine the benefits of static checking for that tool. AOP工具的方面声明的简洁性,应当有助于判断该工具静态检查的优势。
27
At this time, the AspectJ compiler is the only commercial-quality AOP compiler, although other research-quality compilers exist. 目前,虽然还存在其他研究质量的编译器,但是AspectJ编译器是惟一达到商业质量的AOP编译器。
28
AOP allows the fault handling concern to be encapsulated in a common Aspect applied to the participating classes. AOP让故障处理的问题被封装在通用的可以作用到参与类的层面上。
29
I ll explain some of the design opportunities presented by using an AOP construct to supply annotation toward the end of this article. 在本文最后,我将说明使用AOP构造提供注释带来的一些设计可能性。
30
Therefore, strictly speaking, it may appear that Design by Contract isn't an appropriate candidate for an AOP approach at all. 所以,严格来说,契约式设计看起来可能根本不是AOP技术的备选方案。