@Inject public PluginsService(Settings settings, Environment environment) { super(settings); this.environment = environment; loadPluginsIntoClassLoader(); // first, find all the ones that are in the classpath Map<String, Plugin> plugins = Maps.newHashMap(); plugins.putAll(loadPluginsFromClasspath(settings)); logger.info("Loaded {}", plugins.keySet()); this.plugins = ImmutableMap.copyOf(plugins); }