@Documented @Retention(value=RUNTIME) @Target(value=METHOD) public @interface Binds
Module that delegate bindings. For example, to
bind Random to SecureRandom a module could declare the
following: @Binds abstract Random bindRandom(SecureRandom secureRandom);
@Binds methods are a drop-in replacement for Provides methods that simply
return an injected parameter. Prefer @Binds because the generated implementation is
likely to be more efficient.
A @Binds method:
abstract.
Copyright © 2016 Google, Inc.. All rights reserved.