Re: about singletons (ot)

2003-02-11 Thread Erik Price
: Wednesday, January 29, 2003 12:26 PM To: Tomcat Users List Subject: Re: about singletons (ot) So you mean that the original author (mike jackson) was saying that he used synchronized code blocks to apply a finer level of detail in specifying what is synchronized and what isn't, as opposed to just

RE: about singletons (ot)

2003-02-10 Thread Mike Jackson
PROTECTED] -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 12:26 PM To: Tomcat Users List Subject: Re: about singletons (ot) So you mean that the original author (mike jackson) was saying that he used synchronized code blocks to apply

RE: about singletons (ot)

2003-01-30 Thread WATKIN-JONES,ADAM (HP-UnitedKingdom,ex1)
snip/ Basically yes. Much less code than you normally would think needs to be declared synchronized. Maybe someone can post a link to a good guide to thread synchronization - personally I only can recommend the O'Reilly Java Thread book but that's personal taste(!) snip/ How about Concurrent

RE: about singletons (ot)

2003-01-29 Thread Ralph Einfeldt
through the implementation of the class, but that is additional coding) -Original Message- From: Felipe Schnack [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 28, 2003 10:56 PM To: Tomcat Users List Subject: about singletons (ot) Normally we do that implementing a class

RE: about singletons (ot)

2003-01-29 Thread Daniel Brown
January 2003 21:56 To: Tomcat Users List Subject: about singletons (ot) These days I was thinking It's not so uncommon to have uses for singleton classes in our everyday lives. Normally we do that implementing a class that have its constructor as private, so no one can instantiate

Re: about singletons (ot)

2003-01-29 Thread Erik Price
Mike Jackson wrote: The difference is that if you use a singleton there's one instance. If everything is static then you only have one copy. Usually when you use a singleton it's to control access to some resource, the intent is that you use the singleton and some synchronized calls (note I

Re: about singletons (ot)

2003-01-29 Thread Tobias Dittrich
PROTECTED] Sent: Wednesday, January 29, 2003 1:46 PM Subject: Re: about singletons (ot) Mike Jackson wrote: The difference is that if you use a singleton there's one instance. If everything is static then you only have one copy. Usually when you use a singleton it's to control access

Re: about singletons (ot)

2003-01-29 Thread Erik Price
the method call, not the execution speed of the method body ... )? Cheers Tobi From: Erik Price [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, January 29, 2003 1:46 PM Subject: Re: about singletons (ot) Mike Jackson wrote: The difference is that if you use a singleton

Re: about singletons (ot)

2003-01-29 Thread Felipe Schnack
] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, January 29, 2003 1:46 PM Subject: Re: about singletons (ot) Mike Jackson wrote: The difference is that if you use a singleton there's one instance. If everything is static then you only have one copy. Usually when you use

Re: about singletons (ot)

2003-01-29 Thread Tobias Dittrich
: Wednesday, January 29, 2003 9:26 PM Subject: Re: about singletons (ot) So you mean that the original author (mike jackson) was saying that he used synchronized code blocks to apply a finer level of detail in specifying what is synchronized and what isn't, as opposed to just declaring

about singletons (ot)

2003-01-28 Thread Felipe Schnack
These days I was thinking It's not so uncommon to have uses for singleton classes in our everyday lives. Normally we do that implementing a class that have its constructor as private, so no one can instantiate it, and a getInstance() method or something like it. We wouldn't have the same kind

Re: about singletons (ot)

2003-01-28 Thread Cees van de Griend
On Tuesday 28 January 2003 22:56, Felipe Schnack wrote: These days I was thinking It's not so uncommon to have uses for singleton classes in our everyday lives. Normally we do that implementing a class that have its constructor as private, so no one can instantiate it, and a getInstance()

Re: about singletons (ot)

2003-01-28 Thread Jon Wingfield
Did someone say Booch utility? http://www.javaworld.com/javaworld/jw-04-1999/jw-04-toolbox.html see page 2. Actually, this entire set of articles on threading is excellent. Felipe Schnack wrote: These days I was thinking It's not so uncommon to have uses for singleton classes in our

RE: about singletons (ot)

2003-01-28 Thread Mike Jackson
: Felipe Schnack [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 28, 2003 1:56 PM To: Tomcat Users List Subject: about singletons (ot) These days I was thinking It's not so uncommon to have uses for singleton classes in our everyday lives. Normally we do that implementing a class that have

RE: about singletons (ot)

2003-01-28 Thread Larry Meadors
[mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 28, 2003 1:56 PM To: Tomcat Users List Subject: about singletons (ot) These days I was thinking It's not so uncommon to have uses for singleton classes in our everyday lives. Normally we do that implementing a class that have its

RE: about singletons (ot)

2003-01-28 Thread Mike Jackson
, January 28, 2003 4:09 PM To: [EMAIL PROTECTED] Subject: RE: about singletons (ot) I would agree. We had a static class and we thought it would work great...it turned out that we ended up rewriting much of it to use the getInstance() type of interface - it is just so much more flexible