LD is tigger forever,CG are not brothers forever, throw the pot and shine forever.
Modesty is not false, solid is not naive, treacherous but not deceitful, stay with good people, and stay away from poor people.
talk is cheap, show others the code and KPI, Keep progress,make a better result.
Survive during the day and develop at night。
目录
概 述
创建AOP代理:
在任何bean创建之前,他是INstallation处理器,
每一个bean,创建之前做了什么事情,循环创建,关心这两个bean,
create 通知方法,获取当前bean的可用的增强器,切面bean.
找到能在当前bean使用的增强器, eligiable for 循环不是这个类型的,
can pointcutAdvisor 如果需要增强器,
如果当前Step into 增强器,获取所有增强器,保存到getAopProxy.createAopProxy ,创建AOP代理:
3)创建代理对象,Spring自动区别,jdk 动态代理,cglib的动态代理。
强制使用CGLIB。创建一个代理对象。
4)增强了代理对象,给容器中返回当前组件使用CGLIB 对象,
小结
参考资料和推荐阅读
1.链接: link.
博客主要围绕Spring中AOP代理的创建展开。在bean创建前,作为Installation处理器,会循环创建并关注特定bean。创建通知方法,获取可用增强器和切面bean,找到适用于当前bean的增强器。Spring会自动区分jdk动态代理和cglib动态代理,还可强制使用CGLIB创建代理对象并增强后返回给容器。
6488

被折叠的 条评论
为什么被折叠?



