Skip to content

Instantly share code, notes, and snippets.

View meza's full-sized avatar
👋
tweet me if I missed a PR

Meza meza

👋
tweet me if I missed a PR
  • London, United Kingdom
  • 12:24 (UTC +01:00)
View GitHub Profile
Config globalConfig = new Config();
Configuration mainConfigFile = new RequiredConfigurationFile("global.properties");
Configuration devConfigFile = new OptionalConfigurationFile("developer.properties");
globalConfig.add(mainConfigFile);
globalConfig.addOverriding(devConfigFile);
globalConfig.addHighOrder(new SystemPropertiesConfiguration());
Config localConfig = new Config(globalConfig);
private String getCreateContentForm(String contentType) {
if ("article".equals(contentType)) {
return createArticleForm();
}
if ("audio".equals(contentType)) {
return createAudioForm();
}
if ("cartoon".equals(contentType)) {
return createCartoonForm();