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.multibindings |
Extension for binding multiple instances in a collection; this extension requires
guice-multibindings.jar . |
com.google.inject.spi |
Guice service provider interface
|
Modifier and Type | Method and Description |
---|---|
void |
Binder.scanModulesForAnnotatedMethods(ModuleAnnotatedMethodScanner scanner)
Adds a scanner that will look in all installed modules for annotations the scanner can parse,
and binds them like @Provides methods.
|
Modifier and Type | Field and Description |
---|---|
private static ModuleAnnotatedMethodScanner |
ProviderMethodsModule.PROVIDES_BUILDER |
private ModuleAnnotatedMethodScanner |
ProviderMethodsModule.scanner |
Modifier and Type | Method and Description |
---|---|
static Module |
ProviderMethodsModule.forModule(java.lang.Object module,
ModuleAnnotatedMethodScanner scanner)
Returns a module which creates bindings methods in the module that match the scanner.
|
private static Module |
ProviderMethodsModule.forObject(java.lang.Object object,
boolean skipFastClassGeneration,
ModuleAnnotatedMethodScanner scanner) |
Constructor and Description |
---|
ProviderMethodsModule(java.lang.Object delegate,
boolean skipFastClassGeneration,
ModuleAnnotatedMethodScanner scanner) |
Modifier and Type | Class and Description |
---|---|
private static class |
MultibindingsScanner.Scanner |
Modifier and Type | Method and Description |
---|---|
static ModuleAnnotatedMethodScanner |
MultibindingsScanner.scanner()
Returns a
ModuleAnnotatedMethodScanner that, when bound, will scan all modules for
methods with the annotations @ProvidesIntoMap ,
@ProvidesIntoSet , and @ProvidesIntoOptional . |
Modifier and Type | Field and Description |
---|---|
private ModuleAnnotatedMethodScanner |
ModuleAnnotatedMethodScannerBinding.scanner |
Modifier and Type | Field and Description |
---|---|
private java.util.Set<ModuleAnnotatedMethodScanner> |
Elements.RecordingBinder.scanners |
Modifier and Type | Method and Description |
---|---|
ModuleAnnotatedMethodScanner |
ModuleAnnotatedMethodScannerBinding.getScanner() |
Modifier and Type | Method and Description |
---|---|
void |
Elements.RecordingBinder.scanModulesForAnnotatedMethods(ModuleAnnotatedMethodScanner scanner) |
Constructor and Description |
---|
ModuleAnnotatedMethodScannerBinding(java.lang.Object source,
ModuleAnnotatedMethodScanner scanner) |