Warning: include(/home/bluesummergbflju3ewsauimlm6e6r/wwwroot/wp-content/plugins/wp-super-cache/wp-cache-base.php): failed to open stream: No such file or directory in /home/bluesummerebalqugewsjuvmzm2eur/wwwroot/wp-content/plugins/wp-super-cache/wp-cache.php on line 99 Warning: include(): Failed opening '/home/bluesummergbflju3ewsauimlm6e6r/wwwroot/wp-content/plugins/wp-super-cache/wp-cache-base.php' for inclusion (include_path='.:') in /home/bluesummerebalqugewsjuvmzm2eur/wwwroot/wp-content/plugins/wp-super-cache/wp-cache.php on line 99 Warning: include_once(/home/bluesummergbflju3ewsauimlm6e6r/wwwroot/wp-content/plugins/wp-super-cache/ossdl-cdn.php): failed to open stream: No such file or directory in /home/bluesummerebalqugewsjuvmzm2eur/wwwroot/wp-content/plugins/wp-super-cache/wp-cache.php on line 122 Warning: include_once(): Failed opening '/home/bluesummergbflju3ewsauimlm6e6r/wwwroot/wp-content/plugins/wp-super-cache/ossdl-cdn.php' for inclusion (include_path='.:') in /home/bluesummerebalqugewsjuvmzm2eur/wwwroot/wp-content/plugins/wp-super-cache/wp-cache.php on line 122 Castle IOC:Windsor (二) – 追光者博客

Castle IOC:Windsor (二)

前言

Castle IOC:Windsor (一)中,引入了 IOC ,实现了最基本的控制反转,为了由浅入深的理解 IOC ,把接口和实现的注册,直接放在了主方法里。

实际的开发中,肯定不能这么做,这样做跟直接耦合没有多大差别。

这一章记录一下怎么把注册部分,放在配置文件中,真正发挥 IOC 的优势。

一,配置文件编写规则

 

发表评论

Powered by WordPress | Theme Revised from Doo

苏ICP备18047621号

Copyright © 2017-2024 追光者博客