My favorites | Sign in
Project Logo
                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package di.webserver;

import org.mortbay.jetty.Server;

import com.google.inject.Guice;
import com.google.inject.Injector;

public class GuiceDI {

public static void main(String[] args) throws Exception {
Injector injector = Guice.createInjector(new CalculatorServerModule(args));
Server server = injector.getInstance(Server.class);
server.start();
}

}
Show details Hide details

Change log

r6 by Misko.Hevery on Apr 23, 2008   Diff
Manual / Guice dependency injection
example
Go to: 
Project members, sign in to write a code review

Older revisions

All revisions of this file

File info

Size: 374 bytes, 16 lines
Hosted by Google Code