Skip to content

Instantly share code, notes, and snippets.

@hamnis
Created June 21, 2013 08:02
Show Gist options
  • Save hamnis/5829649 to your computer and use it in GitHub Desktop.
Save hamnis/5829649 to your computer and use it in GitHub Desktop.
public static ConstrettoConfig create() {
ConstrettoConfiguration config = new ConstrettoBuilder().
createIniFileConfigurationStore().
addResource(Resource.create("classpath:config.ini")).
addResource(Resource.create("file:/etc/wholesale/config.ini"))
.done().createSystemPropertiesStore().getConfiguration();
return new ConstrettoConfig(config);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment