You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Brian McCormick <mc...@cox.net> on 2013/07/22 18:48:16 UTC

commons-configuration question

I hope I am asking in the right place. I could not find a user group per se
that supports this. Please point me in the right direction if this isn't a
good place to ask questions.

 

I am evaluating whether to use the commons-configuration in my development
as opposed to the java Preferences API. The 1.0 version of the app has
already been released with the user preferences stored using Java
Preferences API. 

 

Does the commons-configuration API support the formats used by the java
Preferences API? It looks like it provides interoperability with the java
Properties API but I didn't see anything about the Preferences API.

 

thanks

 

Brian S. McCormick

mccorb@cox.net

918-749-5453

 


Re: commons-configuration question

Posted by Oliver Kopp <ko...@gmail.com>.
Hi,

> I hope I am asking in the right place. I could not find a user group per se
> that supports this. Please point me in the right direction if this isn't a
> good place to ask questions.

Yes, this is the right place (as far as I understood :))

> Does the commons-configuration API support the formats used by the java
> Preferences API?

In my experience: Yes.

I instantiate a "PropertiesConfiguration" object and attach an
AutoSaveListener to have the file updated properly when a
configuration value is changed.
Apache Commons Configuration also has an autosave listner built in (as
far as I remember), but I don't find the code lines, I used before
adding a self-made AutoSaveListener.

Cheers,

Oliver

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


[configuration] Re: commons-configuration question

Posted by Oliver Heger <ol...@oliver-heger.de>.
Hello Brian,

Am 22.07.2013 18:48, schrieb Brian McCormick:
> I hope I am asking in the right place. I could not find a user group per se
> that supports this. Please point me in the right direction if this isn't a
> good place to ask questions.
> 
yes, this is the correct place. However, this is a shared list for all
Commons components. Therefore, convention is to prefix the subject with
the name of the component you are interested in (as I have done).

>  
> 
> I am evaluating whether to use the commons-configuration in my development
> as opposed to the java Preferences API. The 1.0 version of the app has
> already been released with the user preferences stored using Java
> Preferences API. 
> 
>  
> 
> Does the commons-configuration API support the formats used by the java
> Preferences API? It looks like it provides interoperability with the java
> Properties API but I didn't see anything about the Preferences API.
> 
I assume you would like to access a Preferences object through the
Configuration interface? Unfortunately, this is currently not supported.
There is an implementation of such a class in an experimental branch,
but it is not mature or in a shape to be released.

Sorry
Oliver
>  
> 
> thanks
> 
>  
> 
> Brian S. McCormick
> 
> mccorb@cox.net
> 
> 918-749-5453
> 
>  
> 
> 


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