File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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!
I agree. Here's the link:
subject: Anti-patterns - Singleton.
It's not a secret anymore!