Example #1
0
 public synchronized void start() {
   for (PluginHolder pluginHolder : plugins) {
     Object instance = pluginHolder.getInstance();
     if (instance instanceof SenseiPlugin) {
       ((SenseiPlugin) instance).start();
     }
   }
 }
Example #2
0
 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;
 }