use of com.b2international.snowowl.snomed.validation.SnomedQueryValidationRuleEvaluator in project snow-owl by b2ihealthcare.
the class SnomedPlugin method init.
@Override
public void init(SnowOwlConfiguration configuration, Environment env) throws Exception {
final SnomedCoreConfiguration coreConfig = configuration.getModuleConfig(SnomedCoreConfiguration.class);
env.services().registerService(SnomedCoreConfiguration.class, coreConfig);
final Injector injector = new EclStandaloneSetup().createInjectorAndDoEMFRegistration();
env.services().registerService(EclParser.class, new DefaultEclParser(injector.getInstance(IParser.class), injector.getInstance(IResourceValidator.class)));
env.services().registerService(EclSerializer.class, new DefaultEclSerializer(injector.getInstance(ISerializer.class)));
// register SNOMED CT Query based validation rule evaluator
ValidationRuleEvaluator.Registry.register(new SnomedQueryValidationRuleEvaluator());
}
use of com.b2international.snowowl.snomed.validation.SnomedQueryValidationRuleEvaluator in project snow-owl by b2ihealthcare.
the class AllGenericValidationTests method init.
@BeforeClass
public static void init() {
ValidationRuleEvaluator.Registry.register(new SnomedQueryValidationRuleEvaluator());
final Path resourcesDir = PlatformUtil.toAbsoluteBundlePath(BaseGenericValidationRuleTest.class.getClassLoader().getResource("src/main/resources"));
ValidationRuleEvaluator.Registry.register(new GroovyScriptValidationRuleEvaluator(resourcesDir));
TerminologyRegistry.INSTANCE.register(new SnomedPlugin());
}
Aggregations