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

Dan Allen (JIRA) jira-events at lists.jboss.org
Sat Jun 12 13:24:46 EDT 2010


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

Dan Allen resolved ARQ-169.
---------------------------

    Fix Version/s: 1.0.0.Alpha3
       Resolution: Done


> 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
>            Assignee: Dan Allen
>             Fix For: 1.0.0.Alpha3
>
>         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