Struts2源码阅读(四)_Dispatcher&ConfigurationProvider续
来源:互联网 发布:修复注册表软件 编辑:程序博客网 时间:2024/05/16 19:18
接下来第三步:init_LegacyStrutsProperties()
调用的是调用的是LegacyPropertiesConfigurationProvider
通过比较前面DefaultPropertiesProvider与调用的是LegacyPropertiesConfigurationProvider.
发现DefaultPropertiesProvider继承自后者,但重写了register()方法,主要是生成PropertiesSetting的不同,前者是根据org/apache/struts2/default.properties
后者是根据struts.properties
我们展开register()中的Settings.getInstance(),最后是调用getDefaultInstance()
在2.1.6中去掉了第四步:init_ZeroConfiguration();
第五步是自定义的configProviders
第六步:init_FilterInitParameters
第七步:init_AliasStandardObjects,使用BeanSelectionProvider
这是将配置文件中定义的<bean>与实际的类相映射,就是注入bean的依赖关系,这部分以后有时候再研究Container
接下来是看怎样调用这些ConfigurationProviders
展开init_PreloadConfiguration()
展开DefaultConfiguration中的reloadContainer
http://qidaoxp.javaeye.com/blog/497052
- Struts2源码阅读(四)_Dispatcher&ConfigurationProvider续
- Struts2源码阅读(四)_Dispatcher&ConfigurationProvider续
- Struts2源码阅读(四)_Dispatcher&ConfigurationProvider续
- Struts2源码阅读(四)_Dispatcher&ConfigurationProvider续 .
- Struts2源码阅读(四)_Dispatcher&ConfigurationProvider续
- Struts2源码阅读(三)_Dispatcher&ConfigurationProvider
- Struts2源码阅读(三)_Dispatcher&ConfigurationProvider
- Struts2源码阅读(三)_Dispatcher&ConfigurationProvider
- Struts2源码阅读(三)_Dispatcher&ConfigurationProvider .
- Struts2源码阅读(二)_Dispatcher&ConfigurationProvider
- Struts2源码阅读(三)_Dispatcher&ConfigurationProvider
- Struts2源码浅析-ConfigurationProvider
- Struts2源码浅析-ConfigurationProvider
- struts2源码阅读2
- struts2源码阅读
- Struts2源码阅读
- log4j源码阅读四
- pg源码阅读四
- PHP Memcached扩展安装
- 高效分页
- Struts2源码阅读(三)_Dispatcher&ConfigurationProvider
- entOS linux Root密码忘了就这么办!
- 女生如何嫁给富豪
- Struts2源码阅读(四)_Dispatcher&ConfigurationProvider续
- ASP.NET2.0 文本编辑器FCKeditor (推荐)
- ASP.NET2.0轻松搞定统计图表【月儿原创】
- Struts2源码阅读(五)_FilterDispatcher核心控制器
- 完成dhtmlxtree的彻底完成
- 找工作知识梳理-MySQL命令
- 关于vector的erase操作后,迭代器失效问题
- Struts2源码阅读(六)_ActionProxy&ActionInvocation
- 李开复:移动互联网机会最大 微博会现最大赢家