use of com.b2international.snomed.ecl.EclStandaloneSetup 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.snomed.ecl.EclStandaloneSetup in project snow-owl by b2ihealthcare.
the class SnomedEclRewriterTest method givenRewriter.
@Before
public void givenRewriter() {
final Injector injector = new EclStandaloneSetup().createInjectorAndDoEMFRegistration();
rewriter = new SnomedEclRewriter();
parser = new DefaultEclParser(injector.getInstance(IParser.class), injector.getInstance(IResourceValidator.class));
serializer = new DefaultEclSerializer(injector.getInstance(ISerializer.class));
}
Aggregations