[arquillian-issues] [JBoss JIRA] Updated: (ARQ-169) XmlConfiguration should use setter methods to assign configuration properties

Dan Allen (JIRA) jira-events at lists.jboss.org
Mon Jun 7 12:55:38 EDT 2010


     [ https://jira.jboss.org/browse/ARQ-169?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Allen updated ARQ-169:
--------------------------

    Attachment: ARQ-169-patch.txt


Attaching patch that uses setter methods to assign configuration property values.

> XmlConfiguration should use setter methods to assign configuration properties 
> ------------------------------------------------------------------------------
>
>                 Key: ARQ-169
>                 URL: https://jira.jboss.org/browse/ARQ-169
>             Project: Arquillian
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 1.0.0.Alpha2
>            Reporter: Dan Allen
>         Attachments: ARQ-169-patch.txt
>
>
> Currently, XmlConfiguration is using the method Class#getDeclaredField(String) to find the field that matches the configuration property. For one, this breaks if the field is inherited from a base class. But rather than scanning through the inheritance hierarchy, XmlConfiguration should be looking for a public setter field that corresponds to the property name. For example:
> httpPort --> setHttpPort()

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the arquillian-issues mailing list