|
From: Arne L. (JIRA) <no...@at...> - 2007-12-08 20:29:17
|
[ http://opensource.atlassian.com/projects/spring/browse/RCP-499?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Arne Limburg updated RCP-499:
-----------------------------
Attachment: ClassPropertyAccessStrategy.patch
I have added a ClassPropertyAccessStrategy that does not need an object (and renamed the old ClassPropertyAccessStrategy to ObjectPropertyAccessStrategy). But whereas the ObjectPropertyAccessStrategy behaves nearly like the BeanPropertyAccessStrategy, there is still some behaviour to be defined for the ClassPropertyAccessStrategy:
If you set a nestedProperty.simpleProperty via the ClassPropertyAccessStrategy and set the nestedProperty afterwards. What should happen? Should the nestedProperty.simpleProperty stay the old value, become the new value of the nestedProperty or shall the simpleProperty of the object set as nestedProperty get the previously set value?
> Provide a ClassPropertyAccessStrategy
> -------------------------------------
>
> Key: RCP-499
> URL: http://opensource.atlassian.com/projects/spring/browse/RCP-499
> Project: Spring Framework Rich Client Project
> Issue Type: New Feature
> Components: Binding System
> Reporter: Arne Limburg
> Assignee: Jan Hoskens
> Attachments: ClassPropertyAccessStrategy.patch, ClassPropertyAccessStrategy.patch, ClassPropertyAccessStrategy.patch
>
>
> You discussed the creation of a ClassPropertyAccessStrategy some month ago. My implementation can detect property-types based on provided classes or interfaces even if some object in the property path is null. It can detect collection types if Java 5 Generics are available. Field-access can optionally switched on or off. Within this patch I have abstracted out an AbstractPropertyAccessStrategy. This base-class for BeanPropertyAccessStrategy and ClassPropertyAccessStrategy can easily to be used to implement further PropertyAccessStrategy.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/spring/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|