Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Help > What is the bet...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 7 Topic 15940 of 16566
Post > Topic >>

What is the better approach to implement Singleton pattern?

by Venkat Sadasivam <venkatachalam.sadasivam@[EMAIL PROTECTED] > Apr 4, 2008 at 11:31 PM

Singleton is one of the frequently used and easily understandable
design pattern. Most of the tutorials and books give example of making
the constructor as private and exposing a static method which will
provide single instance. The common example they use is Runtime class
of JRE.

Is making constructor as private is the only way to implement
singleton pattern? Is that the best way to implement singleton
pattern?

Here is the complete article.
http://venkatsadasivam.wordpress.com/2008/03/27/what-is-the-better-approach-to-implement-singleton-pattern/

- Venkat
 




 7 Posts in Topic:
What is the better approach to implement Singleton pattern?
Venkat Sadasivam <venk  2008-04-04 23:31:31 
Re: What is the better approach to implement Singleton pattern?
Steve <steven_crowe@[E  2008-04-05 02:26:35 
Re: What is the better approach to implement Singleton pattern?
Lew <lew@[EMAIL PROTEC  2008-04-05 07:43:04 
Re: What is the better approach to implement Singleton pattern?
=?ISO-8859-1?Q?Arne_Vajh=  2008-04-05 12:23:07 
Re: What is the better approach to implement Singleton pattern?
=?ISO-8859-1?Q?Arne_Vajh=  2008-04-05 12:20:37 
Re: What is the better approach to implement Singleton pattern?
thufir <hawat.thufir@[  2008-04-16 09:19:10 
Re: What is the better approach to implement Singleton pattern?
Lew <lew@[EMAIL PROTEC  2008-04-16 09:20:34 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 15:37:59 CST 2008.