com.google.inject
Class Guice

java.lang.Object
  extended by com.google.inject.Guice

public final class Guice
extends Object

The entry point to the Guice framework. Creates Injectors from Modules.


Method Summary
static Injector createInjector(Iterable<Module> modules)
          Creates an injector for the given set of modules.
static Injector createInjector(Module... modules)
          Creates an injector for the given set of modules.
static Injector createInjector(Stage stage, Iterable<Module> modules)
          Creates an injector for the given set of modules, in a given development stage.
static Injector createInjector(Stage stage, Module... modules)
          Creates an injector for the given set of modules, in a given development stage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createInjector

public static Injector createInjector(Module... modules)
Creates an injector for the given set of modules.

Throws:
CreationException - from which you can retrieve the individual error messages

createInjector

public static Injector createInjector(Iterable<Module> modules)
Creates an injector for the given set of modules.

Throws:
CreationException - from which you can retrieve the individual error messages

createInjector

public static Injector createInjector(Stage stage,
                                      Module... modules)
Creates an injector for the given set of modules, in a given development stage.

Throws:
CreationException - from which you can retrieve the individual error messages.

createInjector

public static Injector createInjector(Stage stage,
                                      Iterable<Module> modules)
Creates an injector for the given set of modules, in a given development stage.

Throws:
CreationException - from which you can retrieve the individual error messages.


Copyright 2007 Google Inc. All Rights Reserved.