it.jnrpe.services.plugin.repository/src/main/java/it/jnrpe/services/plugin/JavaServicePluginRepository.java
private void initialize() {

    if (pluginsFolder != null) {
      // loop through all the plugins

      return;
    }

    // Load the plugins only from the system classloader
    ServiceLoader<IPlugin> serviceLoader = ServiceLoader.load(IPlugin.class);
    serviceLoader.forEach(plugin -> pluginsMap.put(plugin.getName(), plugin));
  }
/** Loads all the plugins into the repo */
Loads all the plugins into the repo
Loads all the plugins into the repo
private void initialize() {
    if (pluginsFolder != null) {
      return;
    }
    ServiceLoader<IPlugin> serviceLoader = ServiceLoader.load(IPlugin.class);
    serviceLoader.forEach(plugin -> pluginsMap.put(plugin.getName(), plugin));
  }
private void initialize ( ) { if ( pluginsFolder != null ) { return ; } ServiceLoader < IPlugin > serviceLoader = ServiceLoader . load ( IPlugin . class ) ; serviceLoader . forEach ( plugin -> pluginsMap . put ( plugin . getName ( ) , plugin ) ) ; }
Loads all the plugins into the repo
Loads all the plugins into the repo
// loop through all the plugins // Load the plugins only from the system classloader