my dog learned polymorphism*
The moose likes OO, Patterns, UML and Refactoring and the fly likes Anti-patterns - Singleton. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "Anti-patterns - Singleton." Watch "Anti-patterns - Singleton." New topic

Anti-patterns - Singleton.

jj johnson

Joined: Apr 23, 2008
Posts: 2
Anyone have any thoughts on singleton being an antipattern -- esp in context of using it with the Factory Pattern.
Are there any disadv -- to make the Factory a singleton?
Nitesh Kant

Joined: Feb 25, 2007
Posts: 1638

A lot of info in this faq entry.
Let know if you have doubts after reading that material.

apigee, a better way to API!
subject: Anti-patterns - Singleton.
Similar Threads
Controlling the no of instancecs of a class
Singleton and java garbage collection...and issue?
Programming to interfaces or abstract classes?
most common patterns
Use of Singleton Classes