use of co.cask.cdap.proto.ConfigEntry in project cdap by caskdata.
the class ConfigService method toConfigEntries.
private List<ConfigEntry> toConfigEntries(CConfiguration configuration) {
List<ConfigEntry> result = Lists.newArrayList();
for (Map.Entry<String, String> entry : configuration) {
String source = getFirstElement(configuration.getPropertySources(entry.getKey()));
result.add(new ConfigEntry(entry.getKey(), entry.getValue(), source));
}
return result;
}
Aggregations