use of org.eclipse.vorto.repository.plugin.generator.GeneratorPluginConfiguration in project vorto by eclipse.
the class DefaultGeneratorPluginService method getPluginInfo.
@Override
public GeneratorPluginConfiguration getPluginInfo(String serviceKey, boolean includeConfigUI) {
GeneratorPluginConfiguration plugin = this.generatorsPlugins.get(serviceKey);
if (plugin.getName() == null) {
GeneratorPluginConfiguration pluginLoadedFromServer = loadFromRemote(plugin);
this.generatorsPlugins.put(serviceKey, pluginLoadedFromServer);
plugin = pluginLoadedFromServer;
}
plugin.setAmountOfDownloads(this.generatorMetrics.findByGeneratorKey(serviceKey).getInvocationCount());
return plugin;
}
Aggregations