A Java Util Preferences etcd backend implementation.
Etcd is one of the main configuration cloud oriented key/value backends. The java applications will need to
With this implementation the java applications will, transparently, use etcd as backend to store and retrieve application configuration vĂa java.util.prefs.
A sample, get the application database driver and url from application preferences:
Preferences applicationPref = Preferences.systemRoot();
String driver = userPrefs.get("database.driver", "org.postgresql.Driver");
String url = userPrefs.get("database.url", "jdbc:postgresql://localhost:5740/myDb");
This implementation abstracts the application the problems about interact with etcd, use and standard Java API and does not require to use external libraries.
- JDK Java 8
- Maven 3.2.x