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.
Keeps comments round trip.
Is capable of upgrades / schema transformations.
Gives reliable readable error messages on parsing / validation errors.
Preserves ordering of config.
allows pro-grammatical editing of configuration.
I often create Minecraft Mods/Plugins, and the status quo is to expose user/admin facing 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