-
-
Save arnabc/6465548 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Provided by Square under the Apache License | |
public final enum BusProvider { | |
INSTANCE; | |
public static final Bus BUS; | |
private BusProvider() { | |
BUS = new Bus(); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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