commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <>
Subject Re: [beanutils] adding DynaBean.populate(Map) method?
Date Thu, 30 May 2002 16:27:54 GMT

On Thu, 30 May 2002, James Strachan wrote:

> Date: Thu, 30 May 2002 12:34:42 +0100
> From: James Strachan <>
> Reply-To: Jakarta Commons Developers List <>
> To: Jakarta Commons Developers <>
> Subject: [beanutils] adding DynaBean.populate(Map) method?
> When working with DynaBeans it might be nice to offer a populate(Map) method
> to easily populate a DynaBean from a map where the keys are property names
> and the values are the new property values to populate. I've already hit a
> use case for this in Jelly. Adding this method to DynaBean would also mirror
> the BeanUtils.populate(Object bean, Map) method in a more OO way.

Can't you just use BeanUtils.populate() for this already?  It knows (or if
not it's a bug) how to deal with DynaBeans.

Since o.a.c.b.DynaBean is an interface, wouldn't this break every existing
DynaBean implementation in the world?

> I'm happy to go ahead and do the work for this if folks agree. Does this
> seem a sensible idea? I'm +1
> James


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

View raw message