Skip to content

Instantly share code, notes, and snippets.

@PierceZ
Created February 11, 2017 21:43
Show Gist options
  • Save PierceZ/0d03cc90d67ac9ef9d02565d56851d72 to your computer and use it in GitHub Desktop.
Save PierceZ/0d03cc90d67ac9ef9d02565d56851d72 to your computer and use it in GitHub Desktop.
Dagger component to make use of my BusModule class.
@Component(modules = BusModule.class)
@Singleton
public interface BusComponent {
@Named(BusModule.PROVIDER_TOP_SUBJECT)
PublishSubject<String> getTopSubject();
@Named(BusModule.PROVIDER_BOTTOM_SUBJECT)
PublishSubject<String> getBottomSubject();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment