static(ness!) need more hint?Originally Posted by madtree
yes but you did described service locator for your arguments against singleton. the article you pointed to was all about DI V/S service locator. Like you said Factories will solve duplication, and 9 out of 10 times I have seen people use singleton to implement factory.I was speaking about Singletons not service locator. Don't put words in my mouth. Look again I never mentionned service locators. Anyway this discussion is going nowhere so I'm done.
Let me give you a wrong reason if that explains more. A singleton initialize a hashmap to store a list of countries or list of state is bad (just a simple example though).


Reply With Quote