Skip to content

globalmentor/confound

Repository files navigation

Confound

The Configuration Foundation (Confound) library provides a lightweight yet powerful model for accessing various types of application configuration facilities via Csar.

More complex configuration may be using Confound.setDefaultConfigurationConcern(ConfigurationConcern) with the concern of choice, as in the following example:

Confound.setDefaultConfigurationConcern(new MyConfigurationConcern());

Quick Start

An application can easily integrate Confound configuration support with just a few steps:

  1. Include the dependency io.confound:confound:x.x.x.
  2. Pass configuration information to the application using an environment variable such as FOO_BAR or a system property such as foo.bar.
  3. Call Confound.getConfiguration().getXXX("foo.bar") to retrieve the type of parameter you desire. This will retrieve the system property foo.bar or, if not present, the environment variable FOO_BAR, using the appropriate case automatically.

Note: Confounded also provides a mixin interface Confounded that allows an instance of MyClass to call getConfiguration().getXXX("foo.bar").

Other Confound implementations are available via pluggable providers.

Download

Confound is available in the Maven Central Repository in group io.confoud.

Issues

Issues tracked by JIRA.

Changelog

  • 0.5.0: First release.

About

Configuration abstraction and access library.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages