Skip to content

Instantly share code, notes, and snippets.

@alaershov
Created June 4, 2019 17:47
Show Gist options
  • Save alaershov/5e063848ef264515452f6d4ddafd7e15 to your computer and use it in GitHub Desktop.
Save alaershov/5e063848ef264515452f6d4ddafd7e15 to your computer and use it in GitHub Desktop.
Toothpick: bind to an interface
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