Service Locators: Anti-Pattern or Just Misunderstood
I have talked to developers who think Service Locators are a great solution to the dependency injection explosion issue and others who think they are a terrible idea to be avoided at all costs. In this post I want to explore both points of view, looking at the good and the bad use cases for Service Locators and to help you decide if they are a good fit for your pattern toolbox.