«« Next » « Previous
«« Next » « Previous

Link Details

Voters make better lovers! Login and vote now.
Link 35893 thumbnail

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.
  • 9
  • 1
  • 1075
  • 502

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (9)



Voters Against This Link (1)