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:
Wolfgang Meyers 2016-05-31 15:37:50 -07:00 committed by Ben McIlwain
parent 8eab3848c1
commit 5fb06de203

View file

@ -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 {}