Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any Apache Commons-Configuration replacements / competitors?

I recently tried to use Apache Commons-Configuration to manage some local XML configuration files. It drastically falls short on ease of use (can't load empty config files, CombinedConfiguration requires utilization of underlying Configurations for most operations, etc), and consistency across its API (save operation posts no Events, Events are not universal).

Aside from the JDK Preferences which writes to the Registry (which I don't want), are there any other alternatives to managing file based preferences?

Using another file format is not an option.

like image 475
Spencer Kormos Avatar asked Apr 18 '12 17:04

Spencer Kormos


1 Answers

I have used XStream in the past for this, but it is just XML data-binding, mapping from file to objects. It puts the burden on you to provide higher level methods (in particular combining configurations, validation).

like image 174
Christopher Oezbek Avatar answered Oct 16 '22 15:10

Christopher Oezbek