Created
June 4, 2019 17:47
-
-
Save alaershov/5e063848ef264515452f6d4ddafd7e15 to your computer and use it in GitHub Desktop.
Toothpick: bind to an interface
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public final class RepositoryModule extends Module { | |
public RepositoryModule(Context context) { | |
bind(UserRepository.class).to(PrefUserRepository.class); | |
... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment