Beispiel #1
0
 /**
  * Ensures that there is at least one provider of the specified service type by extracting
  * matching core plugins. Plugins must be named so that their file name starts with the service
  * type, and then an underscore.
  *
  * @param pm The plugin manager to use to access services
  * @param serviceType The type of service that should exist
  */
 public static void ensureExists(final PluginManager pm, final String serviceType) {
   if (pm.getServicesByType(serviceType).isEmpty()) {
     extractCorePlugins(serviceType + "_");
     pm.getPossiblePluginInfos(true);
   }
 }