Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Singleton pattern use

 
Naresh Chaurasia
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can some one give me practical application of Singleton pattern and when it should be used.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When *should* it be used? That's likely to start The Debate.

http://en.wikipedia.org/wiki/Singleton_pattern#Common_uses
 
Muhammad Khojaye
Ranch Hand
Posts: 449
IntelliJ IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Naresh Chaurasia wrote:Can some one give me practical application of Singleton pattern and when it should be used.

check out this Faq.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic