use of com.b2international.snowowl.core.config.SnowOwlConfiguration in project snow-owl by b2ihealthcare.
the class SnowOwl method createConfiguration.
private SnowOwlConfiguration createConfiguration(Path configPath, Plugins plugins) throws Exception {
final Validator validator = ApiValidation.getValidator();
final ConfigurationFactory<SnowOwlConfiguration> factory = new ConfigurationFactory<SnowOwlConfiguration>(SnowOwlConfiguration.class, validator);
factory.setAdditionalModules(plugins.getPluginConfigurations());
final Path configFile = configPath.resolve(CONFIGURATION_FILE);
return configFile != null ? factory.build(new FileConfigurationSourceProvider(), configFile.toString()) : factory.build();
}
Aggregations