public class MultibindingsScanner
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
static Module |
asModule() |
Returns a module that, when installed, will scan all modules for methods with the annotations
@
ProvidesIntoMap, @ProvidesIntoSet, and
@ProvidesIntoOptional. |
static ModuleAnnotatedMethodScanner |
scanner() |
Returns a
ModuleAnnotatedMethodScanner that, when bound, will scan all modules for
methods with the annotations @ProvidesIntoMap,
@ProvidesIntoSet, and @ProvidesIntoOptional. |
public static Module asModule()
ProvidesIntoMap, @ProvidesIntoSet, and
@ProvidesIntoOptional.
This is a convenience method, equivalent to doing
binder().scanModulesForAnnotatedMethods(MultibindingsScanner.scanner()).
public static ModuleAnnotatedMethodScanner scanner()
ModuleAnnotatedMethodScanner that, when bound, will scan all modules for
methods with the annotations @ProvidesIntoMap,
@ProvidesIntoSet, and @ProvidesIntoOptional.