struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject RE: [OT] Use of Static Methods
Date Thu, 10 Jul 2003 04:00:21 GMT


On Thu, 10 Jul 2003, Andrew Hill wrote:

> Date: Thu, 10 Jul 2003 10:52:53 +0800
> From: Andrew Hill <andrew.david.hill@gridnode.com>
> Reply-To: Struts Users Mailing List <struts-user@jakarta.apache.org>,
>      andrew.david.hill@gridnode.com
> To: Struts Users Mailing List <struts-user@jakarta.apache.org>
> Subject: RE: [OT] Use of Static Methods
>
> Put them as methods of a Singleton instance instead of static methods.
> (Ive been using lots of static methods so the fact Im telling you to do it
> differently to that should indicate something ;->)
>
> -Especially when other people have to use these methods too. The number of
> times Ive cursed classes like PropertyUtils and BeanUtils for being statics
> and not singletons because I want to use a slightly different version in
> some places...

Note that, at least in the case of PropertyUtils and BeanUtils, we have
learned the error of our ways, and are refactoring things to use the
singleton (per webapp, but the same philosophy) pattern :-).

Craig

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message