Class MultibindingsScanner

  • @Deprecated
    public class MultibindingsScanner
    extends Object
    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.
    • Method Detail

      • asModule

        public static Module asModule()
        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()).