commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 34099] New: - commons beanutils should be used for conversions
Date Mon, 21 Mar 2005 07:28:32 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34099>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34099

           Summary: commons beanutils should be used for conversions
           Product: Commons
           Version: unspecified
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Configuration
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: ittayd@qlusters.com


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)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message