Link Details

Link 101474 thumbnail
User 312265 avatar

By electro
via electrotek.wordpress.com
Published: Aug 06 2008 / 18:52

A little example on how to implement Singleton pattern in Java > 1.5
  • 23
  • 7
  • 3228
  • 1461

Comments

Add your comment
User 288015 avatar

noahz replied ago:

-1 votes Vote down Vote up Reply

Just say "No" to Singletons.

User 211643 avatar

zynasis replied ago:

-2 votes Vote down Vote up Reply

what a stupid example

User 298071 avatar

texD replied ago:

0 votes Vote down Vote up Reply

Don't use singletons if you can avoid it. There are far better alternatives. Think about dependency injection (and others).

User 323138 avatar

atoztoa replied ago:

6 votes Vote down Vote up Reply

The post doesn't ask you to use Singleton. It just tells you how to implement :)

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.