From: Decebal Suiu Date: Sat, 19 Mar 2016 16:19:01 +0000 (+0200) Subject: Remove dezactivate ServiceProviderExtensionFinder from DefaultExtensionFinder X-Git-Tag: release-0.13.0~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=75fe625df1b49a237d64a9303fe2f0d9bdfcf815;p=pf4j.git Remove dezactivate ServiceProviderExtensionFinder from DefaultExtensionFinder --- diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/DefaultExtensionFinder.java b/pf4j/src/main/java/ro/fortsoft/pf4j/DefaultExtensionFinder.java index cf8c87b..fff72a4 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/DefaultExtensionFinder.java +++ b/pf4j/src/main/java/ro/fortsoft/pf4j/DefaultExtensionFinder.java @@ -31,7 +31,8 @@ public class DefaultExtensionFinder implements ExtensionFinder, PluginStateListe protected List finders = new ArrayList<>(); public DefaultExtensionFinder(PluginManager pluginManager) { - addDefaults(pluginManager); + addExtensionFinder(new LegacyExtensionFinder(pluginManager)); +// addExtensionFinder(new ServiceProviderExtensionFinder(pluginManager)); } @Override @@ -63,9 +64,10 @@ public class DefaultExtensionFinder implements ExtensionFinder, PluginStateListe } } - protected void addDefaults(PluginManager pluginManager) { - finders.add(new ServiceProviderExtensionFinder(pluginManager)); - finders.add(new LegacyExtensionFinder(pluginManager)); + public DefaultExtensionFinder addExtensionFinder(ExtensionFinder finder) { + finders.add(finder); + + return this; } }