commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ralph Goers <ralph.go...@dslextreme.com>
Subject Re: [configuration] Refactoring FileConfiguration
Date Sun, 30 Sep 2012 23:37:51 GMT
I second Joerg's statement.

Ralph

On Sep 29, 2012, at 4:02 AM, Jörg Schaible wrote:

> Oliver Heger wrote:
> 
>> One of the pain points in the 1.x versions of [configuration] is IMHO
>> the implementation of FileConfiguration using inheritance over
>> AbstractFileConfiguration and AbstractHierarchicalFileConfiguration.
>> 
>> I started an attempt to work around this: The part of
>> AbstractFileConfiguration which deals with handling of a location (file
>> name, File, URL, ...) and reading/writing data from/to it was extracted
>> into a new FileHandler class. An instance of this class is associated
>> with an object implementing the new FileBased interface. It is this
>> interface which now has to be implemented by file-based configuration
>> classes. It only defines the methods read(Reader) and write(Writer).
> 
> +1
> 
> Anything that improves the current situation is welcome :)
> 
> - Jörg
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
> 


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


Mime
View raw message