public RoxyTokenReplacer() { super(); setPropertyPrefix("@ml."); addPropertiesSource(new FilePropertiesSource(new File("deploy/default.properties"))); addPropertiesSource(new FilePropertiesSource(new File("deploy/build.properties"))); addPropertiesSource(new FilePropertiesSource(new File("deploy/local.properties"))); }
protected TokenReplacer buildModuleTokenReplacer(AppConfig appConfig) { DefaultTokenReplacer r = appConfig.isUseRoxyTokenPrefix() ? new RoxyTokenReplacer() : new DefaultTokenReplacer(); final Map<String, String> customTokens = appConfig.getCustomTokens(); if (customTokens != null) { r.addPropertiesSource(new MapPropertiesSource(customTokens)); } if (appConfig.getModuleTokensPropertiesSources() != null) { for (PropertiesSource ps : appConfig.getModuleTokensPropertiesSources()) { r.addPropertiesSource(ps); } } return r; } }