commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Porter, Roy" <roy.por...@uk.fid-intl.com>
Subject [BeanUtils] Converter, copyProperties
Date Fri, 22 Feb 2002 14:14:59 GMT
I've just been developing my own 'copyProperties' to copy properties from a
normal Javabean to a Dynabean, and vice versa.

I originally looked at implementing the Converter interface, but ended up
not doing for the simple reason that 
my destination bean may already exist, and I don't necessarily want the
expense of creating a new one. 

It would be ideal if there was also a convert(Object, Object) method. They
could of course use the same underlying code .....

Is the Converter interface specifically for use within the Beanutils
package, or is it intended for people to pick up and use elsewhere ? 

Another query is when converting Locale dependant information (particularly
in my instance, dates) there's no way to pass in the locale. 

So I guess I'm suggesting something like :

convert(Class, Object);

convert(Object, Object);

convert(Class, Object, Locale);

convert(Object, Object, Locale);


or should I just forget about using the Converter interface ?


--
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