mirror of
https://github.com/google/nomulus
synced 2026-01-08 07:11:44 +00: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:
committed by
Ben McIlwain
parent
8eab3848c1
commit
5fb06de203
@@ -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 {}
|
||||
|
||||
Reference in New Issue
Block a user