public synchronized void start() { for (PluginHolder pluginHolder : plugins) { Object instance = pluginHolder.getInstance(); if (instance instanceof SenseiPlugin) { ((SenseiPlugin) instance).start(); } } }
public synchronized void stop() { for (PluginHolder pluginHolder : plugins) { Object instance = pluginHolder.getInstance(); if (instance instanceof SenseiPlugin) { ((SenseiPlugin) instance).stop(); } } pluginsByPrefix.clear(); pluginsByNames.clear(); plugins.clear(); cachedRegistries.remove(configuration); configuration = null; }