Package dagger.producers
Annotation Type Produces
-
@Documented @Target(METHOD) @Retention(RUNTIME) @Beta public @interface Produces
Annotates methods of a producer module to create a production binding. If the method returns aListenableFuture
orFluentFuture
, then the parameter type of the future is bound to the value that the future produces; otherwise, the return type is bound to the returned value. The production component will pass dependencies to the method as parameters.- Since:
- 2.0