*/
public class DefaultExtensionFinder implements ExtensionFinder, PluginStateListener {
+ protected PluginManager pluginManager;
protected List<ExtensionFinder> finders = new ArrayList<>();
public DefaultExtensionFinder(PluginManager pluginManager) {
+ this.pluginManager = pluginManager;
+
+ finders = new ArrayList<>();
+
addExtensionFinder(new LegacyExtensionFinder(pluginManager));
// addExtensionFinder(new ServiceProviderExtensionFinder(pluginManager));
}
}
}
+ public DefaultExtensionFinder addServiceProviderExtensionFinder() {
+ return addExtensionFinder(new ServiceProviderExtensionFinder(pluginManager));
+ }
+
public DefaultExtensionFinder addExtensionFinder(ExtensionFinder finder) {
finders.add(finder);