Back to project page Teracast-Android.
The source code is released under:
Apache License
If you think the Android project Teracast-Android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.davidtpate.teracast.module; /*from w w w . j av a 2 s . c o m*/ import com.davidtpate.teracast.BaseApplication; import com.davidtpate.teracast.bus.MainThreadBus; import com.squareup.otto.Bus; import dagger.Module; import dagger.Provides; import javax.inject.Singleton; /** * Dagger module for setting up provides statements. * Register all of your entry points below. */ @Module( complete = false, library = true, injects = { BaseApplication.class } ) public class ApplicationModule { @Singleton @Provides Bus provideOttoBus() { return new MainThreadBus( new Bus()); } }