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
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
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
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
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
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
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
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
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:
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
10 matches
Mail list logo