Package com.google.inject.multibindings
Class MultibindingsScanner
- java.lang.Object
-
- com.google.inject.multibindings.MultibindingsScanner
-
@Deprecated public class MultibindingsScanner extends Object
Deprecated.This functionality is installed by default. All references to this can be safely removed. This class will be removed in Guice 4.4Scans a module for annotations that signal multibindings, mapbindings, and optional bindings.- Since:
- 4.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ModuleasModule()Deprecated.This functionality is now installed by default.static ModuleAnnotatedMethodScannerscanner()Deprecated.This method returns an empty scanner since the preexisting functionality is installed by default.
-
-
-
Method Detail
-
asModule
@Deprecated public static Module asModule()
Deprecated.This functionality is now installed by default. All references/installations can be eliminated.Returns a module that, when installed, will scan all modules for methods with the annotations @ProvidesIntoMap, @ProvidesIntoSet, and @ProvidesIntoOptional.This is a convenience method, equivalent to doing
binder().scanModulesForAnnotatedMethods(MultibindingsScanner.scanner()).
-
scanner
@Deprecated public static ModuleAnnotatedMethodScanner scanner()
Deprecated.This method returns an empty scanner since the preexisting functionality is installed by default.
-
-