Roman Bosák has published a nice post about rapid implementation of the Singleton design pattern using the Eclipse IDE refactoring tools.
Some readers argued that it's much more efficient to use Eclipse IDE templates for implementing design patterns.
So, you can see here both approaches, as under 2minutes screeencasts, and you can decide for yourself.
First screencast shows classical (by the
GOF book) Singleton implementation using Eclipse IDE refactoring facility (01:10):
This screencast shows a thread-safe lazy-loaded Singleton variant implemented using Eclipse IDE templates (01:40):
For this tutorial we have used materials from:
and these books:
If you are interested in more Design Patterns screencasts, please leave a comment, or use our Poll.
2 comments:
this tutorial is awesome...
but i m getting error
here session key is null
& error is "java.lang.NullPointerException"
if anyone having solution regarding this error then plz tell me.
thanx
Yes, very nice indeed. Looking forward to more refactoring casts!
Thanks
Racjonalny Developer
Post a Comment