dcsimg
singleton class
3 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Sunday, March 27, 2005 08:15 AM


In which situation we used singleton class? and what is the major advantage of it?

Re: singleton class

Posted By:   Anonymous  
Posted On:   Wednesday, April 13, 2005 04:17 AM

This is desgin pattern and u should use for util class .This improves the performance.

Re: singleton class

Posted By:   Anand_Rajasekar  
Posted On:   Wednesday, April 6, 2005 05:10 PM

typically a singleton should be used when you want a global shared registry, common for all your components

Re: singleton class

Posted By:   Christopher_Koenigsberg  
Posted On:   Sunday, March 27, 2005 07:08 PM

According to the people behind the Spring Framework (www.springframework.org), the use of singletons is an "anti-pattern", something to be avoided if at all possible.
About | Sitemap | Contact