This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Anti-patterns - Singleton.
jQuery in Action, 3rd edition