Mark Nickel <[EMAIL PROTECTED]> writes:

> > hm... that would be cool.  Just keep this API public and usable so that
> > other Jetspeed code can use the Weather stuff.  I would recommend using
> > the Daemon facility to schedule this and then provide a singleton.
> >
> > Kevin
> 
> Ooooo..  New term.  What's  a singleton?
> 

Far too much used design pattern ;-)

Seriously it is a design pattern that ensures that there is only one
instance of a class.  

I don't like the singleton pattern because of this very restriction. It
limits the reusabillity of a class. 

Read the "Gang of Four"(Design Patterns, Gamma et al.) book for more
information on singletons and other design patterns.

regards, 

        Gunnar


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to