一、AOP 概念 U0q{8 "Pl
Joinpoint:它定义在哪里加入你的逻辑功能,对于Spring AOP,Jointpoint指的就是Method。 oE[wOq+
j<>E
Fd
Advice:特定的Jointpoint处运行的代码,对于Spring AOP 来讲,有Before advice、AfterreturningAdvice、ThrowAdvice、AroundAdvice(MethodInteceptor)等。 |g M|>
}20
Q`?
Pointcut:一组Joinpoint,就是说一个Advice可能在多个地方织入, CTQF+Oe8O
[URo#
Aspect:这个我一直迷惑,它实际是Advice和Pointcut的组合,但是Spring AOP 中的Advisor也是这样一个东西,但是Spring中为什么叫Advisor而不叫做Aspect。 fi^I1*S
b[<