Skip to content

Sample applications which use cfg4j for configuration management

License

Notifications You must be signed in to change notification settings

majkiw/cfg4j-sample-apps

 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%