cfg4j / cfg4j-sample-apps

Sample applications which use cfg4j for configuration management

Home Page:http://cfg4j.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sample applications using cfg4j library

Apps

  • classpath-bind - reads configuration from a classpath files and outputs values to the stdout.
  • consul-bind - reads configuration from a local Consul agent and outputs values to the stdout. Automatically reloads configuration after change.
  • files-bind - reads configuration from a local files and outputs values to the stdout. Automatically reloads configuration after change.
  • git-simple - reads configuration from a given git repository (using getProperty methods) and outputs values to the stdout. Automatically reloads configuration after change.
  • git-bind - reads configuration from a given git repository (using object binding) and outputs values to the stdout. Automatically reloads configuration after change.
  • git-multi-file - reads configuration from a given git repository (from multiple files) and outputs values to the stdout. Automatically reloads configuration after change.
  • metrics - reads configuration from a a local file and outputs values to the stdout. Automatically reloads configuration after change. Exposes metrics.

Usage

  • Build all apps
> cd cfg4j-sample-apps/
> ./gradlew build
  • Run app (in this example: "git-bind") - read README.md file in the corresponding app root directory for more information.
> java -jar git-bind/build/libs/git-bind-1.0.0-SNAPSHOT.jar

About

Sample applications which use cfg4j for configuration management

http://cfg4j.org

License:Apache License 2.0


Languages

Language:Java 100.0%