关于dependency injection和IOC,博客园的各位大牛们都写过不少文章,在此不发表个人的拙见.近日在网上乱晃,找到一个外国仁兄的一个关于dependency injection和IOC的PPT,个人感觉比martin flower写的那篇dependency injection更好理解,并且加以更多实例,包括现实世界中的一些容器的实例(castle windsor container,pico-&NanoContainer等),对不是特别熟悉的人比较有帮助.放上来看有人需要看看不,顺便借个地方保存下来这个PPT,免得哪天又找不到了...:)
目录如下:
Part 1 - Some Theory
Motivation
Dependency Injection
Containers
Part 2 - The Real World
The Castle Project
Pico-& NanoContainer
An Example inDetail
Part 3 - Alternatives
Service Locators
Enterprise Java Beans & OSGJ
Conclusion
下载