Skip to content

wavesoftware/java-preferences-hiera

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Java Preferences API backend for Puppetlabs Hiera

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages