Details
-
Type: New Feature
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.2-RC1
-
Fix Version/s: 1.2
-
Component/s: PicoContainer (Java)
-
Labels:None
-
Testcase included:yes
-
Number of attachments :
Description
Here's a patch that allows to set bean properties using a PropertyEditor if one is present: that is, if an editor exists for the property being set, it is going to be used to translate a String representation of a bean property into an actual object.
There is something similar in Spring, and I needed this to be able to leverage the from Acegi. (They're used to convert complex strings from the spring config into objects used by acegi.
Please tell me what you think.
Issue Links
- relates to
-
PICO-233 Have BeanPropertyComponentAdapter handle real objects and not just strings
Activity
Grégory Joseph
made changes -
Grégory Joseph
made changes -
Description |
Here's a patch that allows to set bean properties using a PropertyEditor if one is present: that is, if an editor exists for the property being set, it is going to be used to translate a String representation of a bean property into an actual object. There is something similar in Spring, and I needed this to be able to leverage the from Acegi. (They're used to convert complex strings from the spring config into objects used by acegi. Please tell me what you think. I didn't apply it immediately, 'cause I now have some failing tests in nano (XMLContainerBuilderTestCase for instance), and I'll have a look at those to see if there's any relation ... |
Here's a patch that allows to set bean properties using a PropertyEditor if one is present: that is, if an editor exists for the property being set, it is going to be used to translate a String representation of a bean property into an actual object. There is something similar in Spring, and I needed this to be able to leverage the from Acegi. (They're used to convert complex strings from the spring config into objects used by acegi. Please tell me what you think. |
Grégory Joseph
made changes -
Assignee | Grégory Joseph [ gjoseph ] |
Grégory Joseph
made changes -
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Resolved [ 5 ] |
Fix Version/s | 1.2 [ 11330 ] |
Paul Hammant
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
Patch applied - thanks Mauro for reviewing