package org.elasticsearch.plugin.degraphmalizer; import org.elasticsearch.common.inject.*; import org.elasticsearch.plugin.degraphmalizer.updater.UpdaterManager; /** * The Google Guice dependency injection module for the Degraphmalizer plugin. */ public class DegraphmalizerPluginModule extends AbstractModule { @Override protected void configure() { bind(UpdaterManager.class).in(Singleton.class); bind(DegraphmalizerLifecycleListener.class).asEagerSingleton(); bind(DegraphmalizerClusterListener.class).asEagerSingleton(); } }