Skip to content

Instantly share code, notes, and snippets.

@muratcanbur
Created July 16, 2015 17:05
Show Gist options
  • Save muratcanbur/384474d24cbe333ed5b1 to your computer and use it in GitHub Desktop.
Save muratcanbur/384474d24cbe333ed5b1 to your computer and use it in GitHub Desktop.
import com.squareup.otto.Bus;
/**
* Created by muratcanbur on 23/06/15.
*/
public class BusProvider {
private static final Bus BUS = new Bus();
public static Bus getInstance() {
return BUS;
}
// no need to create instance
private BusProvider() {
// No instances.
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment