Voters make better lovers! Login and vote now.
By bloid
via saloon.javaranch.com
Published: Aug 20 2007 / 04:42
The factory can then return an object, which may or may not be a singleton. So far, so good. And the factory could have a pool of resources, or a single copy, as an implementation detail.
But if the Factory wants to keep either one and only one instance of an object, or pull from a pool, it needs to know that its storage is a static singleton. You would not want there to be two Factory instances, pulling from two pools.
Add your comment