|
|
Re: Singleton classes and Threadsafe
|
Posted: Oct 20, 2004 11:20 PM
|
|
My baad again... To the poster... Apparently its a return type... I guess it could be researched on the Java API...
> My bad on the use of language there... I don't think > I need to take a Java Certification course guy, I > encountered Singleton patterns in my software > engineering Soccer2003 project... And the fact > that one can have declarations such as > > public Singleton instance() in Java led me to > believe its a keyword... > > Once again my baad on the screw up of the terminology... > No need for the sarcasm and the shrewed remarks... > I led the guy in the right direction... > If he knows how to use it in a Java context, who > really cares whether or not its a key word? > If he ends up reading up on Design Patterns it > would probably help him out more than knowing it > in the Java context but I thought I'd try and > dispell it from the Java point of view... > My baad on the misquote there... > > One, > Spike > > > Gents, I don't know which version of Java that you are > > referring to - but my version doesn't have the > 'singleton' > > keyword. > > > > You really should have a look at the language > > specification > > at: > > > > > http://java.sun.com/docs/books/jls/second_edition/html/lexi > > > cal.doc.html#229308 > > > > There are plenty of other resources on java.sun.com > that > > would be a good place to start. I would recommend that > you > > start a course of study towards Java Programmer > > certification which would help take some of the > guesswork > > out of your quest. > > > > Also pay careful attention as to how to use threads > > correctly, issues relating to monitor states, locking > > etc. > > > > I recommend "Taming Java Threads" by Allen Holub. > > > > - good luck > > > > Nick
|
|