|
From: Alef A. <al...@jt...> - 2004-06-10 14:11:06
|
Juergen,
The changes to the BeanWrapper are fine with me.
Furthermore, to allow for a different data structure backing an extended =
BeanWrapper, I had to do the following (patch included as an =
attachment).
- *protected* BeanWrapperImpl getBeanWrapperForPropertyPath(String =
propertyPath)
- *protected* List getBeanWrappersForPropertyPath(String propertyPath)
- introduced new method (protected setIntrospectionClass) called from =
setWrappedInstance in BeanWrapperImpl. In my extended bean wrapper I =
don't have a concrete wrapped instance, so object.getClass() does not =
work. The setIntrospectionClass method creates the introspectionResults =
instead of the setWrappedInstance method
- in toString() changed getWrappedObjectInstance().getClass().getName() =
to getWrappedClass().getName() (again because there is no concrete =
wrapped object)
So it's actually not all that much. Could you have a look at this?
Thanx,
Alef
> -----Original Message-----
> From: spr...@li...
> [mailto:spr...@li...] On =
Behalf
> Of j=FCrgen h=F6ller [werk3AT]
> Sent: Thursday, June 10, 2004 12:15 AM
> To: spr...@li...
> Subject: Re: [Springframework-developer] BeanWrapperImpl abstraction
>=20
> I've just factored out all getPropertyValue and
> setPropertyValue/setPropertyValues methods from BeanWrapper into a new
> org.springframework.beans.PropertyAccessor base interface. If this is =
what
> we agree on, I'm gonna commit it promptly. (A trivial change, =
actually:
> just affects the BeanWrapper interface itself.)
>=20
> Juergen
>=20
>=20
> ________________________________
>=20
> Von: spr...@li... im Auftrag =
von
> Rod Johnson
> Gesendet: Mi 09.06.2004 20:29
> An: spr...@li...
> Betreff: Re: [Springframework-developer] BeanWrapperImpl abstraction
>=20
>=20
>=20
> Something like:
>=20
> public interface PropertyAccessor {
> public Object getPropertyValue(String propertyName);
> public void setPropertyValue(String propertyName, Object value);
> // get/set multiple
> }
>=20
> >This would be useful for use within our bean binder framework to =
allow
> the
> binders to be configured with different strategies for setting / =
receiving
> properties.
>=20
> +1
>=20
> Rod
>=20
>=20
>=20
> -------------------------------------------------------
> This SF.Net email is sponsored by: GNOME Foundation
> Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event.
> GNOME Users and Developers European Conference, 28-30th June in Norway
> http://2004/guadec.org
> _______________________________________________
> Springframework-developer mailing list
> Spr...@li...
> https://lists.sourceforge.net/lists/listinfo/springframework-developer
>=20
>=20
>=20
>=20
> -------------------------------------------------------
> This SF.Net email is sponsored by: GNOME Foundation
> Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event.
> GNOME Users and Developers European Conference, 28-30th June in Norway
> http://2004/guadec.org
> _______________________________________________
> Springframework-developer mailing list
> Spr...@li...
> https://lists.sourceforge.net/lists/listinfo/springframework-developer
>=20
>=20
|