摘要:
继续上一篇的介绍 1、上一篇分析到createAopProxy方法,创建Aop代理对象 2、进入DefaultAopProxyFactory类的createAopProxy方法 3、创建代理对象后,进入getProxy方法 this.singletonInstance = getProxy(crea 阅读全文
posted @ 2019-07-14 22:47 work hard work smart 阅读(908) 评论(0) 推荐(0)
|
|||
摘要:
继续上一篇的介绍 1、上一篇分析到createAopProxy方法,创建Aop代理对象 2、进入DefaultAopProxyFactory类的createAopProxy方法 3、创建代理对象后,进入getProxy方法 this.singletonInstance = getProxy(crea 阅读全文
posted @ 2019-07-14 22:47 work hard work smart 阅读(908) 评论(0) 推荐(0)
摘要:
1、ProxyFactoryBean的典型配置 2、进入getObject方法 3、初始化Advisor链方法 initializeAdvisorChain 4、获得代理对象方法 getSingletonInstance 5、this.singletonInstance = getProxy(cre 阅读全文
posted @ 2019-07-14 21:02 work hard work smart 阅读(326) 评论(0) 推荐(0)
摘要:
Spring IOC设计到的设计模式: 工厂模式,模板方法模式,单例模式 Spring AOP涉及到的设计模式: 工厂模式,代理模式 1、Spring AOP目标 将分散在程序各处的横切关注点剥离出来,并以集中的方式进行表达 使得开发人员专注于业务逻辑的实现而非繁杂的非功能代码,简化了程序编写与单元 阅读全文
posted @ 2019-07-14 16:29 work hard work smart 阅读(312) 评论(0) 推荐(0)
摘要:
1、ApplicationContext的所在的位置如下图 2、WebApplicationContext继承ApplicationContext 3、查看WebApplicationContext的实现类,常用的是XmlWebApplicationContext XmlWebApplication 阅读全文
posted @ 2019-07-14 15:38 work hard work smart 阅读(2041) 评论(0) 推荐(0) |
|||