public final class Guice extends Object
Modifier and Type | Method and Description |
---|---|
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.
|
public static Injector createInjector(Module... modules)
CreationException
- from which you can retrieve the individual error
messagespublic static Injector createInjector(Iterable<Module> modules)
CreationException
- from which you can retrieve the individual error
messagespublic static Injector createInjector(Stage stage, Module... modules)
CreationException
- from which you can retrieve the individual error
messages.public static Injector createInjector(Stage stage, Iterable<Module> modules)
CreationException
- from which you can retrieve the individual error
messages.Copyright © 2013. All Rights Reserved.