getPublicMethod() sounds to me like it belongs in MethodUtils.  At least, if
I saw two classes, MethodUtils and ClassUtils, I'd probably look in
MethodUtils if I was looking for a method.

-----Original Message-----
From: Gary Gregory [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 15, 2006 1:04 PM
To: Jakarta Commons Developers List
Subject: RE: [lang] ClassUtils.getPublicMethod

Hi:

I think ClassUtils is fine unless it gets to be a giant class.

I think if asking a class for its methods, so asking a ClassUtils for
this info makes sense.

I could see a MethodUtils being useful if one needed to perform
operations on a bunch of methods. 

For example:

Method[] methods = ClassUtils.getMethods(...);
Method[] publicMethods = MethodUtils.toPublicMethods(methods);

Gary


> -----Original Message-----
> From: Stephen Colebourne [mailto:[EMAIL PROTECTED]
> Sent: Saturday, May 13, 2006 5:38 AM
> To: Jakarta Commons Developers List
> Subject: [lang] ClassUtils.getPublicMethod
> 
> This is a new addition in this release.
> 
> Should we be creating a MethodUtils instead?
> 
> Stephen
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to