commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benedikt Ritter (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SANDBOX-373) [BeanUtils2] Implement setProperty( String name ) on DefaultBeanAccessor
Date Mon, 30 Jan 2012 14:42:10 GMT
[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


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

        

Mime
View raw message