SpringAOP源码
2024-07-12 15:23:53 0 举报
SpringAOP源码
作者其他创作
大纲/内容
createAopProxy
1 AOP代理入口?2 AOP对应的处理类在哪里?
registerOrEscalateApcAsRequired将AnnotationAwareAspectJAutoProxyCreator注册到内存当中
findAdvisorsThatCanApply
getProxy
AOP代理类入口
getAdvicesAndAdvisorsForBean
InstantiationModelAwarePointcutAdvisorImpl
instantiateAdvice
postProcessAfterInitialization
创建代理的过程
AbstractAspectJAdvisorFactory
AbstractAutoProxyCreator
根据注解类型创建不同种类Advice
initializeBean
createProxy
ReflectiveAspectJAdvisorFactory
getAdvisorMethods
判断jdk还是cglib来代理
DefaultAopProxyFactory
AbstractAutowireCapableBeanFactory
AtAfterReturning
AspectJAfterReturningAdvice->AfterAdvice
JdkDynamicAopProxy
getPointcut
Import(AspectJAutoProxyRegistrar.class)
wrapIfNecessary
注解EnableAspectJAutoProxy
AopConfigUtils
registerAspectJAnnotationAutoProxyCreatorIfNecessary
getAdvisors
AtAround
AspectJAroundAdvice->MethodInterceptor
findEligibleAdvisors
AtBefore
AspectJMethodBeforeAdvice->MethodBeforeAdvice
AspectJAutoProxyRegistrar
registerBeanDefinitions
AnnotationAwareAspectJAutoProxyCreator
AbstractAdvisorAutoProxyCreator
BeanFactoryAspectJAdvisorsBuilder
getAdvisor
applyBeanPostProcessorsAfterInitialization
找到需要切面的类
findAnnotation
ProxyFactory
buildAspectJAdvisors
AtAfter
AspectJAfterAdvice->MethodInterceptor
AtAfterThrowing
AspectJAfterThrowingAdvice->MethodInterceptor
findCandidateAdvisors
ProxyCreatorSupport
findAspectJAnnotationOnMethod
AOP对应处理类的入口
0 条评论
回复 删除
下一页