You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Mark Fortner <ph...@yahoo.com> on 2006/03/17 23:29:08 UTC

[configuration] Configuration API Questions

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?
   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?
   3. There was mention of supporting the Preferences API in a future
      release, how close is that intended release?

Regards,

Mark Fortner

Re: [configuration] Configuration API Questions

Posted by Paul Galbraith <pa...@paulgalbraith.net>.


ebourg wrote:
> 
> Paul Galbraith a écrit :
>> 
>> Is there any more news on having configuration support the preferences
>> API?
> 
> There is nothing new on this front. What would you need ? Using a 
> Preferences as a Configuration, or using a Configuration as a 
> Preferences ? Or both ?
> 

I'm interested in accessing preferences as a configuration only, also
possibly eclipse and/or osgi preferences (though I think that may not be
possible) as a configuration.

-- 
View this message in context: http://www.nabble.com/-configuration--Configuration-API-Questions-tf1300718.html#a9999172
Sent from the Commons - User mailing list archive at Nabble.com.


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


Re: [configuration] Configuration API Questions

Posted by Emmanuel Bourg <eb...@apache.org>.
Paul Galbraith a écrit :
> 
> Is there any more news on having configuration support the preferences API?

There is nothing new on this front. What would you need ? Using a 
Preferences as a Configuration, or using a Configuration as a 
Preferences ? Or both ?

Emmanuel Bourg

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


Re: [configuration] Configuration API Questions

Posted by Paul Galbraith <pa...@paulgalbraith.net>.


Oliver Heger-2 wrote:
> 
> 
>>   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.
> 
> 

Is there any more news on having configuration support the preferences API?

Paul

-- 
View this message in context: http://www.nabble.com/-configuration--Configuration-API-Questions-tf1300718.html#a9986878
Sent from the Commons - User mailing list archive at Nabble.com.


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


Re: [configuration] Configuration API Questions

Posted by Oliver Heger <ol...@t-online.de>.
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: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org