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 Containers from Modules.


Method Summary
static Container createContainer(Iterable<Module> modules)
          Creates a Container from Modules.
static Container createContainer(Module... modules)
          Creates a Container from Modules.
static Container createContainer(Stage stage, Iterable<Module> modules)
          Creates a Container from Modules in a given development Stage.
static Container createContainer(Stage stage, Module... modules)
          Creates a Container from 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

createContainer

public static Container createContainer(Module... modules)
                                 throws CreationException
Creates a Container from Modules.

Throws:
CreationException

createContainer

public static Container createContainer(Iterable<Module> modules)
                                 throws CreationException
Creates a Container from Modules.

Throws:
CreationException

createContainer

public static Container createContainer(Stage stage,
                                        Module... modules)
                                 throws CreationException
Creates a Container from Modules in a given development Stage.

Throws:
CreationException

createContainer

public static Container createContainer(Stage stage,
                                        Iterable<Module> modules)
                                 throws CreationException
Creates a Container from Modules in a given development Stage.

Throws:
CreationException