/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
- package com.googlecode.gwtrpccommlayer.gwtp.server;
-
- import com.google.inject.Scopes;
- import com.google.inject.servlet.ServletModule;
- import com.gwtplatform.dispatch.server.Dispatch;
- import com.gwtplatform.dispatch.server.DispatchImpl;
- import com.gwtplatform.dispatch.server.guice.DispatchModule;
- import com.gwtplatform.dispatch.shared.ActionImpl;
-
- /**
- * Created by IntelliJ IDEA.
- * User: dan
- * Date: 10/30/10
- * Time: 3:15 PM
- */
- public class Module extends ServletModule {
-
-
- /**
- */
- public Module(){
- }
-
- @Override
- protected void configureServlets() {
- install(new DispatchModule());
- serve("/" + ActionImpl.DEFAULT_SERVICE_NAME).with(DispatchingPOJOServlet.class);
- bind(DispatchingPOJOServlet.class).in(Scopes.SINGLETON);
-
- //bind(Dispatch.class).to(DispatchImpl.class);
-
- }
- }