User facing configuration libraries? – Info Java

I’ve been looking through Java Libraries lately, and was wondering, aside from Typesafe Config, which has various pet peeves, if anyone knew of a config library that.

  1. Keeps comments round trip.

  2. Is capable of upgrades / schema transformations.

  3. Gives reliable readable error messages on parsing / validation errors.

  4. Preserves ordering of config.

  5. allows pro-grammatical editing of .

I often create Minecraft Mods/Plugins, and the status quo is to expose user/admin configs.

Due to the popularity of Minecraft with kids, the better the validation / error handling the better.

However the other points above are just as important, if you want to offer ‘easier’ in game editing of configs via chat commands.

Migration for user configs is unavoidable, so any libraries that handle that gracefully would be cool.

https://github.com/SpongePowered/Configurate/

Is the Sponge Team (which I’m a part of) config abstraction library, that can handle xml, yaml, json, hocon.

But I’m not overly keen on any of those formats, except maybe xml with a rich editor due to parsing / validation difficulties, and unfriendly editing capability.

What are your thoughts / suggestions?

Article Prepared by Ollala Corp

You might also like
Leave A Reply

Your email address will not be published.