Commits

Sam Adams  committed afd3609

Fix config injection

  • Participants
  • Parent commits 6e4bb38

Comments (0)

Files changed (1)

File quixote-repository-chempound/src/main/java/uk/ac/cam/ch/wwmm/quixote/QuixoteChempoundServletConfig.java

 import com.google.inject.Injector;
 import com.google.inject.Stage;
 import com.google.inject.servlet.GuiceServletContextListener;
-import net.chempound.webapp.ChempoundServletModule;
+import net.chempound.webapp.ServletContextChempoundConfigurationModule;
+import net.chempound.webapp.guice.GuiceServletModule;
 
 /**
  * @author Sam Adams
     @Override
     protected Injector getInjector() {
         return Guice.createInjector(Stage.PRODUCTION,
-                new QuxoteWebappModule(),
-                new ChempoundServletModule()
+                new QuxoteWebappModule() {
+                    @Override
+                    protected void installConfigurationModule() {
+                        install(new ServletContextChempoundConfigurationModule());
+                    }
+                },
+                new GuiceServletModule()
         );
     }
 }