ph settings - phax/ph-commons GitHub Wiki
Simple library for handling configuration files and settings with support for XML, JSON and properties persistence. Consider using ph-config instead for new projects.
Highlights:
-
Settings/ISettings- mutable settings storage -
SettingsWithDefault- settings with default value fallback -
ConfigFile/ConfigFileBuilder- configuration file loading with fluent builder -
SettingsPersistenceXML/SettingsPersistenceJson/SettingsPersistenceProperties- persistence strategies
Add the following to your pom.xml to use this artifact:
<dependency>
<groupId>com.helger.commons</groupId>
<artifactId>ph-settings</artifactId>
<version>x.y.z</version>
</dependency>Note: the Maven groupId changed in v10 from com.helger to com.helger.commons