aspectj

  • 网络织入;的安装及使用;切入点表达式

aspectjaspectj

aspectj

织入

织入weaving:将增强advice添加到目标类的具体连接点上的过程,有三种形式:编译器织入aspectJ),类装载期织入(aspec…

的安装及使用

精通Spring——深入Java EE开发核心技术 ... 5.16.11 PreDestroy 注解 6.2.1 AspectJ 的安装及使用 6.4.6 Introduction 引入 ...

切入点表达式

Spring Framework 2.5 开发参考手册... ... 6.4.2. Spring AOP 中使用 7.2.3. AspectJ 切入点表达式 7.3.2. Spring 里的通知类型 ...

整合

Spring Recipes - newneoniu - XMind:... ... 5.3.3 增强器 Advisor 5.4.3 整合 AspectJ 6.1.2 第三方数据源实现, 如 DBCP ...

实现

Allan - BlogJava ... AOP 具体实现 AspectJ 实现 AOP 术语 ...

1
AspectJ feels natural, as if it fills in a gap in your programming knowledge rather than extending it in a new direction. AspectJ给人的感觉是很自然,就好象它填补了您的编程知识缺陷而不是在一个新方向上的扩展。
2
In AspectJ, an inter-type method declaration looks almost identical to a normal method declaration and is referred to in the same way. 在AspectJ中,类型间方法声明看起来就像正常的方法声明,引用的技术也一样。
3
It is possible to use both AspectJ and Spring AOP simultaneously: they do not conflict. 同时使用AspectJ和SpringAOP是可能的:它们并不冲突。
4
Note that this article addresses the implications of the recently announced merger of the AspectJ and AspectWerkz projects. 注意,本文将解释最近宣布的AspectJ和AspectWerkz项目合并的意义。
5
Currently, AspectJ and AspectWerkz do not include any libraries, although some third-party libraries have been created using these tools. 目前,虽然已经用这些工具创建了一些第三方库,但AspectJ和AspectWerkz不包括任何库。
6
Since AspectJ is an extension to the Java language syntax and semantics, it provides its own set of keywords for working with aspects. 由于AspectJ是Java语言语法和语义的扩展,所以它提供了自己的一套处理方面的关键字。
7
Just as the class is the unit of modularity for Java, the aspect is an additional unit of modularity for AspectJ. 正如类是Java模块化的单元,方面是AspectJ模块化的附加单元。
8
The AspectJ compiler is an extension of the JDT compiler, and is therefore fully capable of compiling Java code. AspectJ编译器是JDT编译器的扩展,所以完全能够编译Java代码。
9
At this time, the AspectJ compiler is the only commercial-quality AOP compiler, although other research-quality compilers exist. 目前,虽然还存在其他研究质量的编译器,但是AspectJ编译器是惟一达到商业质量的AOP编译器。
10
One issue is the requirement that the AspectJ weaver be able to resolve references to third party classes contained in the jar being woven. 一个问题是要求AspectJ织入器能够解析对包含在被织入的jar中的第三方类的引用。
11
Every legal Java program is a legal AspectJ program, so your code will compile just as it always has. 每个合法的Java程序都是合法的AspectJ程序,所以可以像以前那样编译代码。
12
With the AspectJ compiler, you get all the benefits of static checking that you expect from Java code, but applied to aspect code. 有了AspectJ编译器,方面代码就可以得到Java代码从静态检查得到的全部好处。
13
The power of the AspectJ pointcut expression language is not merely about allowing sophisticated constructs. AspectJ切入点表达式语言的强大不仅仅是关于复杂的结构。
14
This article assumes that you are generally familiar with AOP under AspectJ and is not intended as an introduction to AOP. 本文假定您对AspectJ中的AOP有一般性的了解,并且不准备介绍AOP。
15
We've seen how AJDT shows the crosscutting nature of AspectJ by adding editor markers and decorating advised elements. 我们已经看到了AJDT如何通过增加编辑器标记和装饰advice元素来显示AspectJ的crosscutting特征。
16
Based on Table 1, you can see that AspectJ, AspectWerkz, JBoss AOP, and Spring AOP are the leading tools in terms of user adoption. 根据表1,可以看出,从用户采用度的角度来说,AspectJ、AspectWerkz、JBossAOP和SpringAOP是领先的工具。
17
Method at a join point in an around advice, AspectJ handles this situation for me without requiring any special effort. 方法,那么AspectJ会替我处理这种情况,不需要做任何特别的工作。
18
AspectJ incurs compilation overhead in terms of memory usage and time, since it performs most advice planning at compile time. AspectJ在编译时会带来开销,主要是内存和时间的使用,因为它是在编译时执行大部分通知。
19
Take advantage of the @Profiled annotation and AspectJ's load-time weaving to decide which methods should be timed at deployment time. 利用@Profiled注解和AspectJ的加载时编织来决定哪些方法应该在部署时计时。
20
In AspectJ, these points are called point cuts, and the code you execute at point cuts is called advice. 在AspectJ中,这些地方都称为pointcut,在pointcut处所执行的代码称为advice。
21
The next piece of the aspect uses some of the new AspectJ 5 support for matching types based on annotations. 方面的下一部分使用了一些新的AspectJ5支持,以进行基于注释的类型匹配。
22
Entries can be added to a project's inpath by right-clicking on the project, selecting Properties, then going to the AspectJ InPath section. 可以通过在项目上右击并选择Properties,然后进入AspectJInPath区域,将条目添加到项目的inpath中。
23
AspectJ is an implementation of the aspect-oriented programming model on the Java platform (see Resources). AspectJ是面向方面编程模型在Java平台上的一种实现(参见参考资料)。
24
This allows AspectJ applications to be compiled by a regular Java 5 compiler, and then later woven by the AspectJ weaver. 这样,就可以通过普通的Java5编译器编译AspectJ应用程序,然后再由AspectJ编织器对其进行编织。
25
Ramnivas is an active member of the AspectJ user community and has been involved with aspect-oriented programming from its early form. Ramnivas是AspectJ用户社团的活跃成员,从面向方面编程的早期阶段就进入这个领域了。
26
The Composite pattern can be implemented in AspectJ using inter-type declarations as shown above with configuration. Composite模式在AspectJ中可使用内部类型声明实现,如上面关于配置的一节所述。
27
The process is also reversible, with a context menu entry to remove the AspectJ nature and switch back to the Java compiler. 这个过程也是可逆的,也就是说,可以使用上下文菜单项来删除AspectJ性质并切换回Java编译器。
28
In this final article in the AOP@Work series, I introduce you to Contract4J, an AspectJ-based tool that supports Design by Contract. 在AOP@Work系列的最后这篇文章中,我将介绍Contract4J,这是一个基于AspectJ的工具,支持契约式设计。
29
While I ve used AspectJ to develop all the code for the example, implementations in other AOP systems are conceptually identical. 虽然我使用了AspectJ开发这个例子的所有代码,但是在其他AOP系统中的实现在概念上是相同的。
30
This aspect is written in the Aspect language, so needs to be compiled by the AspectJ ajc compiler. 这个切面用Aspect语言编写,因此需要由AspectJajc编译器来编译。