Package io.confound.demo
Class ConfoundDemo
java.lang.Object
io.confound.demo.ConfoundDemo
Demonstration of using Confound for system properties, environment variables, class resources, and files; as well as creating separate configuration contexts
using Csar.
General demo of configuring and using Confound. To test Confound using this application, do one of the following:
- Set the environment variable
FOO
. - Set the system property
foo
. - Place a configuration file defining the
foo
key in~/.confound-demo
using one of the following file formats:- config.properties
- config.xml
- config.xml.properties
If no overriding configuration is given, this demo falls back to the built-in configuration file in the resources, which has foo
set to
bar
.
- Author:
- Garret Wilson
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ConfoundDemo
public ConfoundDemo()
-
-
Method Details
-
main
Main application entry point.- Parameters:
args
- Command-line arguments.
-