mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 16:07:15 +02:00
Allow @RequestScope on methods
By default, a provider method is invoked each time a provided object is injected. This allows provider methods in dagger modules to provide request-scoped objects. For more details see: https://guides.codepath.com/android/Dependency-Injection-with-Dagger-2#scopes ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=123691175
This commit is contained in:
parent
8eab3848c1
commit
5fb06de203
1 changed files with 1 additions and 1 deletions
|
@ -25,6 +25,6 @@ import javax.inject.Scope;
|
|||
/** Dagger annotation for request-scoped components that depend on a global component. */
|
||||
@Scope
|
||||
@Documented
|
||||
@Target({ElementType.TYPE})
|
||||
@Target({ElementType.TYPE, ElementType.METHOD})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface RequestScope {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue