protected List<ExtensionFinder> finders = new ArrayList<>();
public DefaultExtensionFinder(PluginManager pluginManager) {
- addDefaults(pluginManager);
+ addExtensionFinder(new LegacyExtensionFinder(pluginManager));
+// addExtensionFinder(new ServiceProviderExtensionFinder(pluginManager));
}
@Override
}
}
- 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;
}
}