My favorites | Sign in
Project Logo
                
Changes to /trunk/src/di/webserver/GuiceDI.java
r0 vs. r6   Edit
  Compare: vs.   Format:
Revision r6
Go to: 
Project members, sign in to write a code review
/trunk/src/di/webserver/GuiceDI.java /trunk/src/di/webserver/GuiceDI.java   r6
  1 package di.webserver;
  2
  3 import org.mortbay.jetty.Server;
  4
  5 import com.google.inject.Guice;
  6 import com.google.inject.Injector;
  7
  8 public class GuiceDI {
  9
  10 public static void main(String[] args) throws Exception {
  11 Injector injector = Guice.createInjector(new CalculatorServerModule(args));
  12 Server server = injector.getInstance(Server.class);
  13 server.start();
  14 }
  15
  16 }
Hosted by Google Code