Without this fix @RBS doesn't work with @ProvidesForRequest, because it provides the binding via a module installed in the scanner.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=324205733
Since qualifier annotations are just cheap ways to create a wrapper type this seems like the most logical thing to do.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=317277968
This API enables the re-writing of Module Bindings - via Element.applyTo(Binder) - to be trustworthy for @RestrictedBindingSource.
Use the API on all 6 Module Binding implementations:
- InstanceBindingImpl
- ConstructorBindingImpl
- ProviderInstanceBindingImpl
- LinkedBindingImpl
- LinkedProviderBindingImpl
- UntargettedBindingImpl
These are exhaustive based on auditing RecordingBinder's implementaiton of Binder APIs for adding bindings: bind(*) and bindConstant().
- bind(*) calls add bindings through com.google.inject.internal.BindingBuilder, which creates all 6 kinds of binding.
- bindConstant() creates a InstanceBindingImpl.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=315506112
Change semantics when both type and qualifier annotation are restricted (annotation wins).
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=311722847