More complex configuration may be using
Confound.setDefaultConfigurationConcern(ConfigurationConcern) with the concern of choice, as in the following example:
This initial release of Confound only supports system variables and environment variables.
An application can easily integrate Confound configuration support with just a few steps:
- Include the dependency
- Pass configuration information to the application using an environment variable such as
FOO_BARor a system property such as
Confound.getConfiguration().getXXX("foo.bar")to retrieve the type of parameter you desire. This will retrieve the system property
foo.baror, 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
Other Confound implementations in addition to system and environment variables will be available in the future.
Confound is available in the Maven Central Repository in group io.confoud.
Issues tracked by JIRA.
- 0.5.0: First release.