forked from square/dagger
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow @AssistedFactory types to be injected as Provider<AssistedFacto…
…ry>. This is to allow situations where a JSR330-only library (like AutoFactory) may inject the factory as a Provider<> type. This is unnecessary since the factories are just shells around other providers, but if the library only codes to JSR330 then it may not be able to have knowledge of Dagger's AssistedFactory in order to not request a Provider of the factory. Other Dagger types like Lazy, Producer, Produced are still disallowed since they are Dagger types and so libraries using those types can reasonably add logic to request AssistedFactory types without the wrapper. RELNOTES=n/a PiperOrigin-RevId: 378450902
- Loading branch information
1 parent
d3fccc3
commit 38077ee
Showing
3 changed files
with
32 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters