commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Carman" <ja...@carmanconsulting.com>
Subject RE: [lang] ClassUtils.getPublicMethod
Date Mon, 15 May 2006 17:14:13 GMT
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:ggregory@seagullsoftware.com] 
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:scolebourne@btopenworld.com]
> 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: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> 


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




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


Mime
View raw message