Tuesday, December 27, 2005 01:57 AM
I find a lot of similiarity between flyweight,Singleton and ServiceLocator pattern. In fact the way Flyweight pattern(GOF) and ServiceLocator(Core J2EE) are implemented they appear one and the same to me. I read somewhere "The singleton can be thought of as a flyweight with a pool size of 1". Can anybody explain how these are different from each other.