如果所考虑的程序元素在其本来的签名和动态上下文中包含捕获所需的连接点的足够信息,那么就没有理由附加注释。
If the program elements of interest contain enough information in their inherent signature and dynamic context to capture the required join points, there is no reason to attach annotations.
这样做的好处是有限的,因为它无法显示在通知与受影响的连接点之间,或者通知与通过类型间声明添加的附加成员之间的所有有意义的关系。
This is only marginally useful, since it will fail to show any of the interesting associations between advice and affected join points, or the additional members added by inter-type declarations.
可以看出,AOP系统在根据附加到连接点上的元数据注释捕获它们的方式上没有概念上的差别。
As you can see, there isn't much conceptual difference between how different AOP systems capture join points based on the metadata annotation attached to them.
应用推荐