struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <>
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 <>
> Reply-To: Struts Users Mailing List <>,
> To: Struts Users Mailing List <>
> 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 :-).


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message