You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Oliver Heger (JIRA)" <ji...@apache.org> on 2007/01/10 21:31:27 UTC

[jira] Resolved: (CONFIGURATION-165) [configuration] Use beanutils for conversions

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

Oliver Heger resolved CONFIGURATION-165.
----------------------------------------

    Resolution: Won't Fix

This issue is now open for a long while. ATM I see no really benefit in changing the conversion code to use beanutils. The additional dependency may even be considered as harmful by some people. Maybe if the converters in beanutils are enhanced to cover all the use cases we need, or if the [convert] project wakes up again, we can re-evaluate this issue.

So closing this ticket as won't fix.

> [configuration] Use beanutils for conversions
> ---------------------------------------------
>
>                 Key: CONFIGURATION-165
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-165
>             Project: Commons Configuration
>          Issue Type: Improvement
>         Environment: Operating System: other
> Platform: Other
>            Reporter: Ittay Dror
>            Priority: Minor
>
> Currently AbstractConfiguration has its own logic for conversion. This makes it 
> non standard with commons beanutils. Furthermore, commons beanutils is 
> extendible, so by using it, one can write a method 
> Object getProperty(String key, Class c) 
> which would automatically convert the returned value of getProperty(String key) 
> to the requested class. This means that (as long as I register the right 
> converter) i can use getProperty("my.class", MyClass.class) and get 
> automatically and instance of MyClass. Very usefull, esp. for enumerations 
> (which can easily have their own converter if using commons-lang's enum)

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

        

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org