PageRenderTime 32ms CodeModel.GetById 13ms RepoModel.GetById 1ms app.codeStats 0ms

/gwtp-extension/src/main/java/com/googlecode/gwtrpccommlayer/gwtp/server/Module.java

https://code.google.com/p/gwtrpccommlayer/
Java | 33 lines | 17 code | 7 blank | 9 comment | 0 complexity | aeae5a88f087bf0763250d04feeb71f5 MD5 | raw file
  1. package com.googlecode.gwtrpccommlayer.gwtp.server;
  2. import com.google.inject.Scopes;
  3. import com.google.inject.servlet.ServletModule;
  4. import com.gwtplatform.dispatch.server.Dispatch;
  5. import com.gwtplatform.dispatch.server.DispatchImpl;
  6. import com.gwtplatform.dispatch.server.guice.DispatchModule;
  7. import com.gwtplatform.dispatch.shared.ActionImpl;
  8. /**
  9. * Created by IntelliJ IDEA.
  10. * User: dan
  11. * Date: 10/30/10
  12. * Time: 3:15 PM
  13. */
  14. public class Module extends ServletModule {
  15. /**
  16. */
  17. public Module(){
  18. }
  19. @Override
  20. protected void configureServlets() {
  21. install(new DispatchModule());
  22. serve("/" + ActionImpl.DEFAULT_SERVICE_NAME).with(DispatchingPOJOServlet.class);
  23. bind(DispatchingPOJOServlet.class).in(Scopes.SINGLETON);
  24. //bind(Dispatch.class).to(DispatchImpl.class);
  25. }
  26. }