tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felipe Schnack <feli...@ritterdosreis.br>
Subject about singletons (ot)
Date Tue, 28 Jan 2003 21:56:06 GMT
  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 of behavior if we simply declare all class methods/fields as
static?

-- 

Felipe Schnack
Analista de Sistemas
felipes@ritterdosreis.br
Cel.: (51)91287530
Linux Counter #281893

Centro Universitário Ritter dos Reis
http://www.ritterdosreis.br
ritter@ritterdosreis.br
Fone/Fax.: (51)32303341


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message