Skip to content

Latest commit

 

History

History
64 lines (45 loc) · 2.16 KB

README.md

File metadata and controls

64 lines (45 loc) · 2.16 KB

Hiera Provider for Java Preferences API

Build Status Build Status SonarQube Coverage SonarQube Technical Dept Maven Central

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

Instalation

With maven dependency:

<dependency>
    <groupId>pl.wavesoftware</groupId>
	<artifactId>preferences-hiera</artifactId>
	<version>0.3.2</version>
</dependency>

Usage

If using as a plugin into Application Server or standalone application set system properties as soon as you can:

// 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:

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