Browse Source

Remove dezactivate ServiceProviderExtensionFinder from DefaultExtensionFinder

pull/94/merge
Decebal Suiu 9 years ago
parent
commit
75fe625df1
  1. 10
      pf4j/src/main/java/ro/fortsoft/pf4j/DefaultExtensionFinder.java

10
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;
}
}

Loading…
Cancel
Save