Skip to content

Added binding config values to fields

Compare
Choose a tag to compare
@virustotalop virustotalop released this 01 Mar 14:24
· 72 commits to master since this release

You can now bind config values to fields.

Example code

Configuration config = Configuration.load(new File("config.yml"));
config.inject(ConfigHolder.class);
//This will inject values into all fields in the ConfigHolder class with the "Node" annotation