| java.lang.Object | |
| ↳ | com.google.inject.Guice | 
The entry point to the Guice framework. Creates Injectors from
 Modules.
 
Guice supports a model of development that draws clear boundaries between
 APIs, Implementations of these APIs, Modules which configure these
 implementations, and finally Applications which consist of a collection of
 Modules. It is the Application, which typically defines your main()
 method, that bootstraps the Guice Injector using the Guice class, as
 in this example:
 
     public class FooApplication {
       public static void main(String[] args) {
         Injector injector = Guice.createInjector(
             new ModuleA(),
             new ModuleB(),
             . . .
             new FooApplicationFlagsModule(args)
         );
         // Now just bootstrap the application and you're done
         FooStarter starter = injector.getInstance(FooStarter.class);
         starter.runApplication();
       }
     }
 
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates an injector for the given set of modules. 
  
   | |||||||||||
Creates an injector for the given set of modules, in a given development
 stage. 
  
   | |||||||||||
Creates an injector for the given set of modules, in a given development
 stage. 
  
   | |||||||||||
Creates an injector for the given set of modules. 
  
   | |||||||||||
| 
  [Expand]
   Inherited Methods  | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
   
From class
  java.lang.Object
 | |||||||||||
Creates an injector for the given set of modules.
| CreationException | if one or more errors occur during injector construction | 
|---|
Creates an injector for the given set of modules, in a given development stage.
| CreationException | if one or more errors occur during injector creation. | 
|---|
Creates an injector for the given set of modules, in a given development stage.
| CreationException | if one or more errors occur during injector construction | 
|---|
Creates an injector for the given set of modules.
| CreationException | if one or more errors occur during injector creation | 
|---|