commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Bourg <e.bo...@cross-systems.com>
Subject Re: [configuration] Automatic reloading
Date Tue, 16 Dec 2003 14:45:23 GMT
He is an implementation of the reloadable decorator suggested by Eric. I 
have also added a set/getRefreshDelay method.

Emmanuel Bourg


Eric Galluzzo wrote:

> Alternatively, it might be nice to introduce a FileConfiguration 
> interface that just has a java.io.File getFile() method.  Both 
> DOM4JConfiguration and PropertiesConfiguration would implement this.  
> Then one could repackage your existing ReloadablePropertiesConfiguration 
> as a ReloadableConfiguration that implements Configuration but delegates 
> to another FileConfiguration and checks the file every so often.  Thus:
> 
> Configuration config = new ReloadableConfiguration(
>    new DOM4JConfiguration( myXMLFile ) );
> 
> or
> 
> Configuration config = new ReloadableConfiguration(
>    new PropertiesConfiguration( myPropFile ) );
> 
> This is a Decorator design reminiscent of FilteredOutputStream and 
> FilteredInputStream.
> 
>    - Eric
> 
> 
> 
> ---------------------------------------------------------------------
> 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