On Thu, 10 Jul 2003, Andrew Hill wrote:

> Date: Thu, 10 Jul 2003 10:52:53 +0800
> From: Andrew Hill <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>,
>      [EMAIL PROTECTED]
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to