commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver Heger <oliver.he...@oliver-heger.de>
Subject Re: [configuration] Re: [nightly build] configuration failed.
Date Thu, 19 Apr 2007 19:35:21 GMT
Emmanuel Bourg wrote:

<snip/>
> 
> Actually we have the generic methods ! :) I didn't add more specialized 
> get methods in DataConfiguration for the new types, instead I introduced 
> generic getters :
> 
> get(Class cls, String key)
> 
> getArray(Class cls, String key)
> 
> getList(Class cls, String key)
> 
> 
> The specialized getters now call the generic getters (except for Date 
> and Calendar), this cuts the nloc by a half. It might be worth moving 
> these methods into AbstractConfiguration now, they offer the features of 
> DataConfiguration without the horde of methods. They would be a nice 
> addition to the Configuration interface for the next major release too.
> 
> Regarding the converters I believe we'll probably delegate this part to 
> another API sooner or later (Morph, Beanutils...), but I don't want to 
> add another core dependency. I was thinking about a pluggable conversion 
> system, we would provide a basic implementation derived from the current 
> code in PropertyConverter, and if someone wants more complex conversions 
> he could plug a custom converter using another API.
> 
> Emmanuel Bourg
> 
Fine, then we are pretty much in line.

Oliver

---------------------------------------------------------------------
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