+ bundleContext.registerService(ModuleSourceRepository.class,
+ new ProceduralModuleSourceRepository() {
+ @Override
+ protected ModuleRepository getModuleRepository(UpdateListener listener) {
+ return SCLOsgi.MODULE_REPOSITORY;
+ }
+ },
+ properties);
+ // Let's try to compile StandardLibrary asynchronously to speed up
+ // the compilation when we actually need it the first time
+ LOGGER.info("Warming up SCL-compiler with StandardLibrary");
+ ForkJoinPool.commonPool().submit(() -> {
+ Failable<Module> module = SCLOsgi.MODULE_REPOSITORY.getModule("StandardLibrary");
+ LOGGER.info("StandardLibrary compiled {}", module);
+ });