Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wavesoftware/java-preferences-hiera

Java Preferences API backend for Puppetlabs Hiera
https://github.com/wavesoftware/java-preferences-hiera

Last synced: about 13 hours ago
JSON representation

Java Preferences API backend for Puppetlabs Hiera

Awesome Lists containing this project

README

        

Hiera Provider for Java Preferences API
======================

[![Build Status](https://travis-ci.org/wavesoftware/java-preferences-hiera.png?branch=master)](https://travis-ci.org/wavesoftware/java-preferences-hiera) [![Build Status](http://jenkins-ro.wavesoftware.pl/buildStatus/icon?job=Java-Hiera-Preferences)](http://jenkins-ro.wavesoftware.pl/job/Java-Hiera-Preferences) [![SonarQube Coverage](https://img.shields.io/sonar/http/sonar-ro.wavesoftware.pl/pl.wavesoftware:preferences-hiera/coverage.svg)](http://sonar-ro.wavesoftware.pl/dashboard/index?id=pl.wavesoftware:preferences-hiera) [![SonarQube Technical Dept](https://img.shields.io/sonar/http/sonar-ro.wavesoftware.pl/pl.wavesoftware:preferences-hiera/tech_debt.svg)](http://sonar-ro.wavesoftware.pl/dashboard/index?id=pl.wavesoftware:preferences-hiera) [![Maven Central](https://img.shields.io/maven-central/v/pl.wavesoftware/preferences-hiera.svg)](http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22preferences-hiera%22)

Hiera Provider for Java Preferences API delivers a easy to use backend for Puppetlabs Hiera

Instalation
-----------

With maven dependency:

```xml

pl.wavesoftware
preferences-hiera
0.3.2

```

Usage
-----

If using as a plugin into Application Server or standalone application set system properties as soon as you can:
```java
// Inside a plugin
HieraPreferencesFactory.activate();

// Aplications use default Java syntax
Preferences prefs = Preferences.userRoot();
boolean production = prefs.getBoolean("production", false);
```

If using hiera preferences inside a Java EE Application user rather direct aproch:
```java
Preferences prefs = HieraPreferencesFactory.createUserRoot();
boolean production = prefs.getBoolean("production", false);
```

Changelog
---------

#### v0.3.2 ####

- more bug fixes

#### v0.3.1 ####
- Bug fixes for transient and miltithreaded maven build

#### v0.3.0 ####

- Fallback to standard Java preferences for method not supported by hiera
- Caching execution of hiera command line tool
- Bugfixes

#### v0.2.0 ####

- Major rewrite
- More test
- CI support

#### v0.1.0 ####

- First version