Re: [configuration] Automatic reloading

2003-12-17 Thread Emmanuel Bourg
I have implemented the reloading strategy suggested by Oliver. I introduced a PersistentConfiguration interface defining the load() and save() methods, the ReloadableConfiguration decorator only accepts instances of PersistenConfiguration. Also I fixed the missing clear() method in the Hierarch

Re: [configuration] Automatic reloading

2003-12-16 Thread Oliver Heger
Emmanuel Bourg wrote: Oliver Heger wrote: Emmanuel, I think after you changed the Configuration interface some classes won't compile any more because they also implement this interface. Did you check that? You are right that breaks the HierarchicalConfiguration subclasses, I forgot to add t

Re: [configuration] Automatic reloading

2003-12-16 Thread Emmanuel Bourg
Oliver Heger wrote: Emmanuel, I think after you changed the Configuration interface some classes won't compile any more because they also implement this interface. Did you check that? You are right that breaks the HierarchicalConfiguration subclasses, I forgot to add the clear() implementation

Re: [configuration] Automatic reloading

2003-12-16 Thread Oliver Heger
Emmanuel, I think after you changed the Configuration interface some classes won't compile any more because they also implement this interface. Did you check that? I like the idea with reloading properties, but the actual implementation seems to be a bit too specific for my taste. It is now po

Re: [configuration] Automatic reloading

2003-12-16 Thread Eric Galluzzo
Emmanuel Bourg wrote: I like the idea of a decorator, I'm implementing it currently. I see one issue though, I was considering a refactoring of the include logic in BasePropertiesConfiguration to use a tree of configurations, i.e. if the property can't be found in the parent configuration, it w

Re: [configuration] Automatic reloading

2003-12-16 Thread Emmanuel Bourg
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 DOM4JConfi

Re: [configuration] Automatic reloading

2003-12-16 Thread Emmanuel Bourg
I like the idea of a decorator, I'm implementing it currently. I see one issue though, I was considering a refactoring of the include logic in BasePropertiesConfiguration to use a tree of configurations, i.e. if the property can't be found in the parent configuration, it would look up in the ch

RE: [configuration] Automatic reloading

2003-12-16 Thread Eric Pugh
Original Message- > From: Tim Reilly [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 16, 2003 4:46 AM > To: Jakarta Commons Developers List > Subject: RE: [configuration] Automatic reloading > > > First, thanks for contributing this. > > I was hopi

RE: [configuration] Automatic reloading

2003-12-15 Thread Tim Reilly
First, thanks for contributing this. I was hoping something like this was possible? > -Original Message- > From: Eric Galluzzo [mailto:[EMAIL PROTECTED] > Sent: Monday, December 15, 2003 12:28 PM > To: Jakarta Commons Developers List > Subject: Re:

Re: [configuration] Automatic reloading

2003-12-11 Thread Craig R. McClanahan
Quoting Emmanuel Bourg <[EMAIL PROTECTED]>: > Greetings, I'd like to contribute a slight modification to reload > automatically a PropertiesConfiguration if the underlying .properties > file has been changed. I had to implement this to prevent restarting my > web application every time a config