private void installModule(String modName) { log.info("Attempting to install module " + modName); createPM().installModule(modName, createLoggingHandler("installing module", unblockHandler())); block(); }
/** * Install a module into the filesystem Vert.x will search in the configured repos to locate the module * * @param moduleName The name of the module * @return Promise of installation */ @Override public Promise<Void> installModule(String moduleName) { final Deferred<Void> d = when.defer(); manager.installModule(moduleName, result -> { if (result.succeeded()) { d.resolve(result.result()); } else { d.reject(result.cause()); } }); return d.getPromise(); }