From 75fe625df1b49a237d64a9303fe2f0d9bdfcf815 Mon Sep 17 00:00:00 2001 From: Decebal Suiu Date: Sat, 19 Mar 2016 18:19:01 +0200 Subject: [PATCH] Remove dezactivate ServiceProviderExtensionFinder from DefaultExtensionFinder --- .../java/ro/fortsoft/pf4j/DefaultExtensionFinder.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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; } } -- 2.39.5