Last active
January 8, 2020 12:03
-
-
Save alaershov/7c8130aaed17c88f549179019dd3def3 to your computer and use it in GitHub Desktop.
Toothpick: bind to singleton
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) | |
.singleton(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment