commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james_strac...@yahoo.co.uk>
Subject Re: [Collections] TransformingComparator
Date Sat, 08 Jun 2002 06:47:41 GMT
Hi Jonathan

Nice idea! I've committed it to CVS in the 'comparators' package. Maybe the
code could be refactored into a new ComparatorUtils later on.

From: "Jonathan Carlson" <joncrlsn2@yahoo.com>
> I also have a generic ReflectingTransformer that I wrote,
> which, when coupled with the attached
> TransformingComparator will allow you to dynamically sort a
> collection based on any getter.  However, it uses a generic
> ReflectionHelper that wouldn't fit within the Collections
> framework (I don't know where it would go).  But if anyone
> is interested in that code too, I'd be happy to share it.

Some kind of PropertyTransformer that used beanutils to extract properties
from a bean, supporting beans, DynaBeans, mapped & indexed properties etc
would be really cool. To avoid circular dependencies adding this to
beanutils might make more sense.

James


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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


Mime
View raw message