Aop流程
2021-06-28 20:38:29 3 举报
aop流程
作者其他创作
大纲/内容
getAdvisors
是否为切面类
AbstractAspectJAdvisorFactory.findAspectJAnnotationOnMethod(candidateAdviceMethod);
构建增强器
advisorNames.length == 0
AtAfter
事务源码
AbstractAutoProxyCreator.postProcessBeforeInstantiation
instantiateAdvice
postProcessBeforeInstantiation
AtPointcut
findCandidateAdvisors
super.findCandidateAdvisors
源码部分
AtAround
BeanFactoryUtils.beanNamesForTypeIncludingAncestors
0
findAdvisorBeans
findEligibleAdvisors
getAdvicesAndAdvisorsForBean
getAdvice
@EnabledAutoProxy注解导入的类
isAspect
AtAfterThrowing
getAdvisor
createBean(...)
switch (aspectJAnnotation.getAnnotationType())
ReflectiveAspectJAdvisorFactory
在当前 bean 工厂中查找所有符合条件的 Advisor bean
AtAfterReturning
new InstantiationModelAwarePointcutAdvisorImpl
applyBeanPostProcessorsBeforeInstantiation
return AspectJMethodBeforeAdvice
buildAspectJAdvisors
返回一个代理对象,如果bean还没有创建完成,则加载一些切面信息
AtBefore
0 条评论
回复 删除
下一页