Any replacements / competitors for Apache Commons-Configuration?

I recently tried using Apache Commons-Configuration to manage some local XML configuration files. This greatly reduces ease of use (cannot load empty configuration files, CombinedConfiguration requires the use of basic configurations for most operations, etc.) and consistency in its API (there is no saving of event messages, events are not universal).

Besides the JDK settings that are written to the registry (which I don't want), are there other alternatives to managing file-based settings?

Using a different file format is not an option.

+6
source share
2 answers

I used XStream in the past for this, but it's just XML data binding, mapping from file to objects. This puts a burden on you to provide a higher level of methods (in particular, combining configurations, validation).

+1
source

Your question does not indicate whether you need to stay with XML-based technology. If not, you can do worse than consider Json , YAML or (my favorite and the one I support) Config4 * .

0
source

Source: https://habr.com/ru/post/913560/


All Articles