SpringAOP拦截器调用JDK时序图
2021-01-21 10:04:32 144 举报
Spring AOP 拦截器调用JDK 时序图
作者其他创作
大纲/内容
DefaultAdvisorAdapterRegistry
JdkDynamicAopProxy
以methodbeforAdver为例子
step 4
getAdvisors
step 3
getInterceptors
DefaultAdvisorChainFactory
ReflectiveMethodInvocation
invoke
getInterceptor
getInterceptorsAndDynamicInterceptionAdvice
step 1
获取拦截器链
targetSource.getTarget
MethodBeforeAdvice的代理类,invoke 方法先执行切面方法,再执行目标方法
MethodBeforeAdviceAdapter
MethodBeforeAdviceInterceptor
new ReflectiveMethodInvocation
new
AdvisedSupport
interceptorList
step 2
invocation.proceed
0 条评论
下一页