| 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
|
| com.google.inject.util |
Helper methods for working with Guice.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractModule
A support class for
Modules which reduces repetition and results in a more readable configuration.
|
class |
PrivateModule
A module whose configuration information is hidden from its environment by default.
|
| Modifier and Type | Method and Description |
|---|---|
Injector |
Injector.createChildInjector(Module
Returns a new injector that inherits all state from this injector.
|
static Injector |
Guice.createInjector(Module
Creates an injector for the given set of modules.
|
static Injector |
Guice.createInjector(Stage
Creates an injector for the given set of modules, in a given development stage.
|
void |
Binder.install(Module
Uses the given module to configure more bindings.
|
protected void |
AbstractModule.install(Module
|
protected void |
PrivateModule.install(Module
|
| Modifier and Type | Method and Description |
|---|---|
Injector |
Injector.createChildInjector(Iterable
Returns a new injector that inherits all state from this injector.
|
static Injector |
Guice.createInjector(Iterable
Creates an injector for the given set of modules.
|
static Injector |
Guice.createInjector(Stage
Creates an injector for the given set of modules, in a given development stage.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ProviderMethodsModule
Creates bindings to methods annotated with @
Provides.
|
| Modifier and Type | Method and Description |
|---|---|
static Module |
ProviderMethodsModule.forModule(Module
Returns a module which creates bindings for provider methods from the given module.
|
static Module |
ProviderMethodsModule.forModule(Object
Returns a module which creates bindings methods in the module that match the scanner.
|
static Module |
ProviderMethodsModule.forObject(Object
Returns a module which creates bindings for provider methods from the given object.
|
| Modifier and Type | Method and Description |
|---|---|
static Module |
ProviderMethodsModule.forModule(Module
Returns a module which creates bindings for provider methods from the given module.
|
| Modifier and Type | Method and Description |
|---|---|
InternalInjectorCreator |
InternalInjectorCreator.addModules(Iterable
|
| Modifier and Type | Method and Description |
|---|---|
static Module |
Elements.getModule(Iterable
Returns the module composed of
elements.
|
| Modifier and Type | Method and Description |
|---|---|
static List |
Elements.getElements(Module
Records the elements executed by
modules.
|
static List |
Elements.getElements(Stage
Records the elements executed by
modules.
|
| Modifier and Type | Method and Description |
|---|---|
static List |
Elements.getElements(Iterable
Records the elements executed by
modules.
|
static List |
Elements.getElements(Stage
Records the elements executed by
modules.
|
| Modifier and Type | Field and Description |
|---|---|
static Module |
Modules.EMPTY_MODULE
|
| Modifier and Type | Method and Description |
|---|---|
static Module |
Modules.combine(Iterable
Returns a new module that installs all of
modules.
|
static Module |
Modules.combine(Module
Returns a new module that installs all of
modules.
|
Module |
Modules.OverriddenModuleBuilder.with(Iterable
See the EDSL example at
override().
|
Module |
Modules.OverriddenModuleBuilder.with(Module
See the EDSL example at
override().
|
| Modifier and Type | Method and Description |
|---|---|
static Module |
Modules.combine(Module
Returns a new module that installs all of
modules.
|
static Modules |
Modules.override(Module
Returns a builder that creates a module that overlays override modules over the given modules.
|
Module |
Modules.OverriddenModuleBuilder.with(Module
See the EDSL example at
override().
|
| Modifier and Type | Method and Description |
|---|---|
static Module |
Modules.combine(Iterable
Returns a new module that installs all of
modules.
|
static Modules |
Modules.override(Iterable
Returns a builder that creates a module that overlays override modules over the given modules.
|
Module |
Modules.OverriddenModuleBuilder.with(Iterable
See the EDSL example at
override().
|