It took me a while, but I finally read it...
Martin Fowler's article is horrible! At the company I work the "service locator pattern" is used instead of dependency injection. Bad Bad Bad.
As a result, when I had to reuse some classes from the main project in a smaller tool, and instead of using the 17 classes I needed, I had to import 350 classes with LOTS of bugs in it, because the service locator had dependencies to it! Completely pointless! Dep Inj decreses the coupling, service locator increases it.
In his examples he even implies the locators SHOULD have static class links, and his "interface for locators" solution is completely unclear.
I completely lost respect for Fowler after that one.



