Configuration manager to load and populate configurations from distinct formats and locations as system properties to config applications
This project is maintained by bytemechanics
Configuration manager to load and populate configurations from distinct formats and locations as system properties to config applications
Loading conifurations is something booring that needs to be done in each application, in the past all java web applications should use JNDI or application server resources, but more and more applications are managed as standalone docker images running as a single application and JVM instance. The scenery has changed and we can go back to use system properties as reliable shared configuration between all application layers. But as been said times has changed and now properties files became too simple to manage current configurations, and for this reason is necessary some tool to load from distinct formats and overloading distinc configs.
Java version: JDK8+
(Please read our Javadoc for further information)
<dependency>
<groupId>org.bytemechanics</groupId>
<artifactId>config-manager</artifactId>
<version>X.X.X</version>
</dependency>
dependencies {
compile 'org.bytemechanics:config-manager:X.X.X'
}
ConfigManagerImpl instance = new ConfigManagerImpl("file://src/test/resources/integral-test-1.yml"
,"classpath://integral-test.yml"
,"classpath://org/bytemechanics/config/manager/internal/integral-test-2.yaml"
,"classpath://integral-test-3.properties");
instance.load();
instance.stream() //Stream<Config>
.map(toMyObject::convert)
(...)