Dear Raj
I had a quick read of the
Static-vs-Single-Pattern thread and agree that it is pretty horrendous.
To borrow from the religious tone of that thread, my 'bible' is Joshua Bloch's
Effective Java (2nd Ed). On page 17 Joshua details three ways of creating a singleton,
final field static factory, and use an enum with one element (form 1.5 only)
I recall the Head First
Patterns book also has an example in it that deals with the double locking.
Anyway, while only a beginner, I am using a couple of Singletons. I can't see an alternative for maintaining system state across the application.
Marten