PageRenderTime 25ms CodeModel.GetById 18ms app.highlight 4ms 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
 1package com.googlecode.gwtrpccommlayer.gwtp.server;
 2
 3import com.google.inject.Scopes;
 4import com.google.inject.servlet.ServletModule;
 5import com.gwtplatform.dispatch.server.Dispatch;
 6import com.gwtplatform.dispatch.server.DispatchImpl;
 7import com.gwtplatform.dispatch.server.guice.DispatchModule;
 8import com.gwtplatform.dispatch.shared.ActionImpl;
 9
10/**
11 * Created by IntelliJ IDEA.
12 * User: dan
13 * Date: 10/30/10
14 * Time: 3:15 PM
15 */
16public class Module extends ServletModule {
17
18
19    /**
20     */
21    public Module(){
22    }
23
24    @Override
25    protected void configureServlets() {
26        install(new DispatchModule());
27        serve("/" + ActionImpl.DEFAULT_SERVICE_NAME).with(DispatchingPOJOServlet.class);
28        bind(DispatchingPOJOServlet.class).in(Scopes.SINGLETON);
29
30        //bind(Dispatch.class).to(DispatchImpl.class);
31
32    }
33}