摘要: 动态代理 ProxyFactoryBean织入切面数量太多不利于围护 BeanNameAutoProxyCreater 根据Bean名称创建代理 DefaultAdvisorAutoProxyCreator 根据Advisor本身包含信息创建代理 AnnotationAwareAspectJAuto 阅读全文
posted @ 2018-05-22 03:15 floatthy 阅读(113) 评论(0) 推荐(0) 编辑
摘要: Spring传统AOP AOP的增强类型 AOP联盟定义了Advice(org.aopalliance.aop.Interface.Advice) 五类(目标类方法的连接点): 1、 前置通知(org.springframework.aop.MethodBeforeAdvice) 执行前增强 2、 阅读全文
posted @ 2018-05-22 03:06 floatthy 阅读(120) 评论(0) 推荐(0) 编辑
摘要: JDK与CGLIB的动态代理 JDK动态代理 Proxy.newProxyInstance(类的加载器(类.getClass().getClassLoader()),实现的接口(类.getClass.getInterfaces()),接口的实例化对象(this或者通过匿名类new的对象)); Thi 阅读全文
posted @ 2018-05-22 03:01 floatthy 阅读(158) 评论(0) 推荐(0) 编辑