Monday, April 26, 2004 06:13 AM
The singletone is an class that is can an unique instance.
For obtained an singletone :
1) constructore must is private and static.
2) in the costructor there is the istrunction: instance = new ClassName(); // create unique istance.
3)there is an method for returned the instance: es: getInstance();
there are very example on the web. It is very like for syncronizer problem because with an unique istance is more sample for manage conccurency.
excuse me for bud english.