Commits

Sam Adams committed 6851c32

Fix to StructureSearchProvider binding

Comments (0)

Files changed (1)

chemistry-search-structure/src/main/java/uk/ac/cam/ch/wwmm/chempound/webapp/search/chemistry/StructureSearchProviderModule.java

 
 import com.google.inject.AbstractModule;
 import com.google.inject.multibindings.MapBinder;
+import uk.ac.cam.ch.wwmm.chempound.webapp.plugins.ChempoundPluginModule;
 import uk.ac.cam.ch.wwmm.chempound.webapp.plugins.ChempoundWebPlugin;
 import uk.ac.cam.ch.wwmm.chempound.webapp.search.SearchProvider;
 
 /**
  * @author sea36
  */
-public class StructureSearchProviderModule extends AbstractModule {
+public class StructureSearchProviderModule extends ChempoundPluginModule {
 
     @Override
     protected void configure() {
-        MapBinder<String,SearchProvider> binder = MapBinder.newMapBinder(binder(), String.class, SearchProvider.class);
-        binder.addBinding("structure").to(StructureSearchProvider.class);
-
-//        MapBinder<String,ChempoundWebPlugin> pluginBinder = MapBinder.newMapBinder(binder(), String.class, ChempoundWebPlugin.class);
+        bindSearchProvider(StructureSearchProvider.class);
     }
 
 }