Top Description Constructors Methods
com.google.inject.multibindings

public Class MultibindingsScanner

extends Object
Class Inheritance
Annotations
@Deprecated
Imports
com.google.common.collect.ImmutableSet, com.google.inject.Binder, .Key, .Module, com.google.inject.spi.InjectionPoint, .ModuleAnnotatedMethodScanner, com.google.inject.util.Modules, java.lang.annotation.Annotation, java.util.Set

Deprecated

This functionality is installed by default. All references to this can be safely removed. This class will be removed in Guice 4.4

Scans a module for annotations that signal multibindings, mapbindings, and optional bindings.
Since
4.0

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
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.
public static ModuleAnnotatedMethodScanner
scanner()

Deprecated This method returns an empty scanner since the preexisting functionality is installed by default.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

MultibindingsScannerback to summary
private MultibindingsScanner()

Method Detail

asModuleback to summary
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()).

Annotations
@Deprecated
scannerback to summary
public static ModuleAnnotatedMethodScanner scanner()

Deprecated

This method returns an empty scanner since the preexisting functionality is installed by default.

Annotations
@Deprecated