You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Benedikt Ritter (Updated) (JIRA)" <ji...@apache.org> on 2012/01/30 15:44:10 UTC

[jira] [Updated] (SANDBOX-373) [BeanUtils2] Implement setProperty( String name ) on DefaultBeanAccessor

     [ https://issues.apache.org/jira/browse/SANDBOX-373?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benedikt Ritter updated SANDBOX-373:
------------------------------------

    Attachment: SANDBOX-373.txt

I've implemented a patch. It should be applied after SANDBOX-371.
                
> [BeanUtils2] Implement setProperty( String name ) on DefaultBeanAccessor
> ------------------------------------------------------------------------
>
>                 Key: SANDBOX-373
>                 URL: https://issues.apache.org/jira/browse/SANDBOX-373
>             Project: Commons Sandbox
>          Issue Type: Task
>          Components: BeanUtils2
>    Affects Versions: Nightly Builds
>            Reporter: Benedikt Ritter
>         Attachments: SANDBOX-373.txt
>
>
> Implement the above mentioned method:
> * check if a property of the given name is available
> * check if the property has a write method
> * create a new DefaultBeanPropertySetter with bean and the setter method as parameters
> * Implement DefaultBeanPropertySetter
> * In DefaultBeanPropertySetter.withValue(V value):
> ** check if the given value can be assigned to the value
> *** if property is primitive, throw IllegalArgumentException for null values
> *** if property is not primitive and value is not null, call TypeUtils.isAssignmentCompatible()
> ** invoke setter method on bean with value
> ** return a new DefaultBeanAccessor with bean as parameter
> * implement a SetPropertyTestCase

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira