这些词还是用e文的好啊,明白什么意思就够了。Professional Spring里面对aop的几个词解释的很清楚,本来想翻译一下的,虽然看得懂,但翻成中文就不知道该怎么说了。那位e文好的帮忙翻一下。
1:Advice
Advice specifies what to do at a join point. In the case of Spring, this is the additional behavior that Spring will inject around a method invocation. It is most often defined in a method interceptor, which will be invoked as part of an interceptor chain wrapping the method invocation.
2:Pointcut
Pointcuts identify where advice should apply. The magic of AOP lies more in the specification of where action should be taken (pointcuts) than what action to apply (advice).
3:Advisor
The purpose of an Advisor is to allow both advice and pointcuts to be reusable independently