Package | Description |
---|---|
com.google.inject |
Google Guice (pronounced "juice") is an ultra-lightweight dependency
injection framework.
|
com.google.inject.internal |
Guice (sounds like like "juice")
|
com.google.inject.spi |
Guice service provider interface
|
Modifier and Type | Method and Description |
---|---|
protected Stage |
AbstractModule.currentStage() |
Stage |
Binder.currentStage()
Gets the current stage.
|
protected Stage |
PrivateModule.currentStage() |
static Stage |
Stage.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Stage[] |
Stage.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static Injector |
Guice.createInjector(Stage stage,
java.lang.Iterable<? extends Module> modules)
Creates an injector for the given set of modules, in a given development
stage.
|
static Injector |
Guice.createInjector(Stage stage,
Module... modules)
Creates an injector for the given set of modules, in a given development
stage.
|
Modifier and Type | Field and Description |
---|---|
(package private) Stage |
InjectorImpl.InjectorOptions.stage |
private Stage |
InjectorShell.Builder.stage |
Modifier and Type | Method and Description |
---|---|
(package private) Stage |
InjectorShell.Builder.getStage() |
Modifier and Type | Method and Description |
---|---|
private static void |
InjectorShell.bindStage(InjectorImpl injector,
Stage stage) |
(package private) InjectorImpl.InjectorOptions |
InjectorOptionsProcessor.getOptions(Stage stage,
InjectorImpl.InjectorOptions parentOptions) |
private boolean |
InternalInjectorCreator.isEagerSingleton(InjectorImpl injector,
BindingImpl<?> binding,
Stage stage) |
boolean |
Scoping.isEagerSingleton(Stage stage)
Returns true if this scope is a singleton that should be loaded eagerly in
stage . |
(package private) void |
InternalInjectorCreator.loadEagerSingletons(InjectorImpl injector,
Stage stage,
Errors errors)
Loads eager singletons, or all singletons if we're in Stage.PRODUCTION.
|
(package private) InjectorShell.Builder |
InjectorShell.Builder.stage(Stage stage) |
InternalInjectorCreator |
InternalInjectorCreator.stage(Stage stage) |
Constructor and Description |
---|
InjectorOptions(Stage stage,
boolean jitDisabled,
boolean disableCircularProxies,
boolean atInjectRequired,
boolean exactBindingAnnotationsRequired) |
Modifier and Type | Field and Description |
---|---|
private Stage |
Elements.RecordingBinder.stage |
Modifier and Type | Method and Description |
---|---|
Stage |
Elements.RecordingBinder.currentStage() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<Element> |
Elements.getElements(Stage stage,
java.lang.Iterable<? extends Module> modules)
Records the elements executed by
modules . |
static java.util.List<Element> |
Elements.getElements(Stage stage,
Module... modules)
Records the elements executed by
modules . |
Constructor and Description |
---|
RecordingBinder(Stage stage) |