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.
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).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With