Hello Mark,

Mark Fortner wrote:

> I'd like to use the Configuration API for a project that I'm working
> and trawling through the documentation prompted a few questions:
>
>   1. The Preferences API has the notion of synchronization which allows
>      the preferences to be synced with a backing store is there any
>      such equivalent in the Configuration API?

For configurations loaded from files we have the concept of so called
reloading strategies. The FileChangedReloadingStrategy class checks if
the configuration file has changed on disk and reloads it if necessary.

>   2. Is there a way to listen to changes in individual nodes.  For
>      example, if I want to create a Swing interface that includes a
>      text box and bind changes to the Configuration to the textbox, is
>      there an easy way of doing it?

Not yet, but that's a topic we are currently discussing. You can find
more details here:
http://issues.apache.org/bugzilla/show_bug.cgi?id=38929

>   3. There was mention of supporting the Preferences API in a future
>      release, how close is that intended release?

No work has been done in this area so far. One problem is that
commons-configuration ATM is still targeted for JDK 1.3 while the
Preferences API was introduced for 1.4. It is possible that we give up
support for 1.3 or create a 1.4/1.5 branch in the future, but I cannot
say when this will happen.

>
> Regards,
>
> Mark Fortner
>
Oliver

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to