Skip to content

Instantly share code, notes, and snippets.

@arnabc
Forked from emil10001/BusProvider.java
Created September 6, 2013 15:31
Show Gist options
  • Save arnabc/6465548 to your computer and use it in GitHub Desktop.
Save arnabc/6465548 to your computer and use it in GitHub Desktop.
// Provided by Square under the Apache License
public final enum BusProvider {
INSTANCE;
public static final Bus BUS;
private BusProvider() {
BUS = new Bus();
}
}
BusProvider.INSTANCE.BUS;
// or do something useful with it:
BusProvider.INSTANCE.BUS.post(someObj);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment