|
|
@ -521,6 +521,7 @@ public abstract class AbstractPluginManager implements PluginManager { |
|
|
|
Class<?> c = extensionWrapper.getDescriptor().extensionClass; |
|
|
|
Class<?> c = extensionWrapper.getDescriptor().extensionClass; |
|
|
|
extensionClasses.add(c); |
|
|
|
extensionClasses.add(c); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return extensionClasses; |
|
|
|
return extensionClasses; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -555,7 +556,11 @@ public abstract class AbstractPluginManager implements PluginManager { |
|
|
|
List<ExtensionWrapper<T>> extensionsWrapper = extensionFinder.find(type); |
|
|
|
List<ExtensionWrapper<T>> extensionsWrapper = extensionFinder.find(type); |
|
|
|
List<T> extensions = new ArrayList<>(extensionsWrapper.size()); |
|
|
|
List<T> extensions = new ArrayList<>(extensionsWrapper.size()); |
|
|
|
for (ExtensionWrapper<T> extensionWrapper : extensionsWrapper) { |
|
|
|
for (ExtensionWrapper<T> extensionWrapper : extensionsWrapper) { |
|
|
|
|
|
|
|
try { |
|
|
|
extensions.add(extensionWrapper.getExtension()); |
|
|
|
extensions.add(extensionWrapper.getExtension()); |
|
|
|
|
|
|
|
} catch (PluginException e) { |
|
|
|
|
|
|
|
log.error("Cannot retrieve extension", e); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return extensions; |
|
|
|
return extensions; |
|
|
@ -566,7 +571,11 @@ public abstract class AbstractPluginManager implements PluginManager { |
|
|
|
List<ExtensionWrapper<T>> extensionsWrapper = extensionFinder.find(type, pluginId); |
|
|
|
List<ExtensionWrapper<T>> extensionsWrapper = extensionFinder.find(type, pluginId); |
|
|
|
List<T> extensions = new ArrayList<>(extensionsWrapper.size()); |
|
|
|
List<T> extensions = new ArrayList<>(extensionsWrapper.size()); |
|
|
|
for (ExtensionWrapper<T> extensionWrapper : extensionsWrapper) { |
|
|
|
for (ExtensionWrapper<T> extensionWrapper : extensionsWrapper) { |
|
|
|
|
|
|
|
try { |
|
|
|
extensions.add(extensionWrapper.getExtension()); |
|
|
|
extensions.add(extensionWrapper.getExtension()); |
|
|
|
|
|
|
|
} catch (PluginException e) { |
|
|
|
|
|
|
|
log.error("Cannot retrieve extension", e); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return extensions; |
|
|
|
return extensions; |
|
|
@ -578,7 +587,11 @@ public abstract class AbstractPluginManager implements PluginManager { |
|
|
|
List<ExtensionWrapper> extensionsWrapper = extensionFinder.find(pluginId); |
|
|
|
List<ExtensionWrapper> extensionsWrapper = extensionFinder.find(pluginId); |
|
|
|
List extensions = new ArrayList<>(extensionsWrapper.size()); |
|
|
|
List extensions = new ArrayList<>(extensionsWrapper.size()); |
|
|
|
for (ExtensionWrapper extensionWrapper : extensionsWrapper) { |
|
|
|
for (ExtensionWrapper extensionWrapper : extensionsWrapper) { |
|
|
|
|
|
|
|
try { |
|
|
|
extensions.add(extensionWrapper.getExtension()); |
|
|
|
extensions.add(extensionWrapper.getExtension()); |
|
|
|
|
|
|
|
} catch (PluginException e) { |
|
|
|
|
|
|
|
log.error("Cannot retrieve extension", e); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return extensions; |
|
|
|
return extensions; |
|
|
|