use of com.sequenceiq.cloudbreak.cmtemplate.generator.configuration.domain.dependencies.ServiceDependencies in project cloudbreak by hortonworks.
the class CmTemplateGeneratorConfigurationResolver method readServiceDefinitions.
private Set<ServiceConfig> readServiceDefinitions() {
Set<ServiceConfig> serviceConfigs = new HashSet<>();
String content = readFileFromClasspathQuietly(serviceDefinitionConfigurationPath);
try {
ServiceDependencies serviceDependencies = MAPPER.readValue(content, ServiceDependencies.class);
serviceConfigs = serviceDependencies.getServices();
} catch (IOException ex) {
String message = String.format("Could not read service definitions from: %s", serviceDefinitionConfigurationPath);
LOGGER.error(message, ex);
}
return serviceConfigs;
}
Aggregations