PageRenderTime 9ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 2ms app.codeStats 0ms

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

https://code.google.com/p/gwtrpccommlayer/
Java | 20 lines | 10 code | 4 blank | 6 comment | 0 complexity | e604f8e8c07775a5f40cd683507c1efe MD5 | raw file
 1package com.googlecode.gwtrpccommlayer.gwtp.server;
 2
 3import com.google.inject.Guice;
 4import com.google.inject.Injector;
 5import com.google.inject.servlet.GuiceServletContextListener;
 6
 7/**
 8 * Created by IntelliJ IDEA.
 9 * User: dan
10 * Date: 11/4/10
11 * Time: 2:59 PM
12 */
13public class GuiceListener extends GuiceServletContextListener {
14
15
16    @Override
17    protected Injector getInjector() {
18        return Guice.createInjector(new Module());
19    }
20}