public class MultibindingsScanner extends Object
Modifier and Type | Method and 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
.