该文是我读AspectJ in Action时的一些学习笔记和自己的一些学习总结,当时是用英文记下的(因为书是英文的嘛,嘿嘿,而且个人认为看英文文档更能理解的透彻一些,毕竟是作者的原话嘛),现在放到网上和大家共享,并翻译成中文,如果哪处我翻译的不够恰当,理解的不够准确,请各位看英文部分以获得更准确的信息并给予我指正。([email protected])
Pointcuts
public pointcut accountOperations :call(*Account.*(..))
这是定义了一个pointcut,其中:
public是access specifer
pointcut是keyword
accountOperations是poincut name
call是pointcut type;;pointcut能与其他pointcut通过或(||)、与(&&)以及非(!)操作符联合
Account是signature
l 常用pointcut类型
1) call
2) execution
3) target
4) args
5) within
6) cflow
l 基本概念
如果对上面的概念不是特别了解没有关系,下面就介绍一些基本的概念:
Joint Point
A join point is an identifiable point in the execution of a program. It could be a call to a method or an assignment to a member of an object.
共9页: 上一页 1 [2] [3] [4] [5] [6] [7] [8] [9] 下一页