上一页 1 2 3 4 5 6 7 8 9 ··· 13 下一页

2018年12月5日

摘要: 47、[源码] Spring容器创建 初始化MessageSource 7、initMessageSource();初始化MessageSource组件(做国际化功能;消息绑定,消息解析); 1. 获取BeanFactory 2. 看容器中是否有id为messageSource的,类型是Messag 阅读全文
posted @ 2018-12-05 21:55 Grand_Jon 阅读(544) 评论(0) 推荐(0) 编辑
 
摘要: 46、[源码] Spring容器创建 注册BeanPostProcessors 6、registerBeanPostProcessors(beanFactory);注册BeanPostProcessor(Bean的后置处理器)【 intercept bean creation】 不同接口类型的Bea 阅读全文
posted @ 2018-12-05 21:52 Grand_Jon 阅读(278) 评论(0) 推荐(0) 编辑
 
摘要: 45、[源码] Spring容器创建 执行BeanFactoryPostProcessor 5、invokeBeanFactoryPostProcessors(beanFactory);执行BeanFactoryPostProcessor的方法; BeanFactoryPostProcessor:B 阅读全文
posted @ 2018-12-05 21:51 Grand_Jon 阅读(301) 评论(0) 推荐(0) 编辑
 
摘要: 44、[源码] Spring容器创建 BeanFactory预准备 Spring容器的refresh()【创建刷新】; 1、prepareRefresh()刷新前的预处理; 1. initPropertySources()初始化一些属性设置;子类自定义个性化的属性设置方法; 2. getEnviro 阅读全文
posted @ 2018-12-05 21:48 Grand_Jon 阅读(242) 评论(0) 推荐(0) 编辑
 

2018年12月4日

摘要: 一、简介 冒泡排序(Bubble Sort)也是一种简单直观的排序算法。它重复地走访过要排序的数列,一次比较两个元素,如果他们的顺序错误就把他们交换过来。走访数列的工作是重复地进行直到没有再需要交换,也就是说该数列已经排序完成。这个算法的名字由来是因为越小的元素会经由交换慢慢“浮”到数列的顶端。 二 阅读全文
posted @ 2018-12-04 23:17 Grand_Jon 阅读(1680) 评论(0) 推荐(0) 编辑
 
摘要: 43、扩展原理 @EventListener与SmartInitializingSingleton 还可以使用 @EventListener; 来监听事件 原理:使用EventListenerMethodProcessor处理器来解析方法上的@EventListener; 使用 SmartIniti 阅读全文
posted @ 2018-12-04 22:50 Grand_Jon 阅读(797) 评论(0) 推荐(0) 编辑
 
摘要: 42、扩展原理 ApplicationListener原理 有三个事件 ContextRefreshedEvent、Test_Ext$1[source=我发布了一个事件]、ContextClosedEvent 1. ContextRefreshedEvent事件: 1. 容器创建对象:refresh 阅读全文
posted @ 2018-12-04 22:49 Grand_Jon 阅读(228) 评论(0) 推荐(0) 编辑
 
摘要: 41、扩展原理 ApplicationListener用法 ApplicationListener 监听容器中发布的事件。事件驱动模型开发; 监听 ApplicationEvent 及其下面的子事件; 步骤: 1)、写一个监听器(ApplicationListener实现类)来监听某个事件(Appl 阅读全文
posted @ 2018-12-04 22:46 Grand_Jon 阅读(501) 评论(0) 推荐(0) 编辑
 
摘要: 40、扩展原理 BeanDefinitionRegistryPostProcessor BeanDefinitionRegistryPostProcessor extends BeanFactoryPostProcessor postProcessBeanDefinitionRegistry(); 阅读全文
posted @ 2018-12-04 02:10 Grand_Jon 阅读(384) 评论(0) 推荐(0) 编辑
 

2018年12月3日

摘要: 39、扩展原理 BeanFactoryPostProcessor BeanPostProcessor:bean后置处理器,bean创建对象初始化前后进行拦截工作的 BeanFactoryPostProcessor:beanFactory的后置处理器; 在BeanFactory标准初始化之后调用,来定 阅读全文
posted @ 2018-12-03 22:34 Grand_Jon 阅读(273) 评论(0) 推荐(0) 编辑
 
上一页 1 2 3 4 5 6 7 8 9 ··· 13 下一页