diff options
author | Decebal Suiu <decebal.suiu@gmail.com> | 2016-03-19 18:19:01 +0200 |
---|---|---|
committer | Decebal Suiu <decebal.suiu@gmail.com> | 2016-03-19 18:19:01 +0200 |
commit | 75fe625df1b49a237d64a9303fe2f0d9bdfcf815 (patch) | |
tree | 491173225cb7b1b21448c9a64c711f2682d1449c | |
parent | 1b623fcf25f791a455948eac425fc0e403f66d36 (diff) | |
download | pf4j-75fe625df1b49a237d64a9303fe2f0d9bdfcf815.tar.gz pf4j-75fe625df1b49a237d64a9303fe2f0d9bdfcf815.zip |
Remove dezactivate ServiceProviderExtensionFinder from DefaultExtensionFinder
-rw-r--r-- | pf4j/src/main/java/ro/fortsoft/pf4j/DefaultExtensionFinder.java | 10 |
1 files 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<ExtensionFinder> 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; } } |