Commits

Sam Adams  committed d3f1670

Provide ServletContext from GuiceServletModule

  • Participants
  • Parent commits 0c7a3b7

Comments (0)

Files changed (1)

File chempound-webapp/src/main/java/net/chempound/webapp/guice/GuiceServletModule.java

 
 import com.google.inject.servlet.ServletModule;
 
+import javax.servlet.ServletContext;
+
 /**
 * @author sea36
 */
     @Override
     protected void configureServlets() {
         serve("/*").with(GuiceRestletServlet.class);
+
+        bind(ServletContext.class).toInstance(getServletContext());
     }
 
 }