Thanks for your contribution!
}
}
+ /**
+ * Unload all plugins
+ */
+ @Override
+ public void unloadPlugins() {
+ // wrap resolvedPlugins in new list because of concurrent modification
+ for (PluginWrapper pluginWrapper : new ArrayList<>(resolvedPlugins)) {
+ unloadPlugin(pluginWrapper.getPluginId());
+ }
+ }
+
/**
* Unload the specified plugin and it's dependents.
*/
*/
PluginState stopPlugin(String pluginId);
+ /**
+ * Unload all plugins
+ */
+ void unloadPlugins();
+
/**
* Unload a plugin.
*
@AfterEach
public void tearDown() {
+ pluginManager.unloadPlugins();
+
pluginJar = null;
pluginManager = null;
}