Back to project page ShoppingList.
The source code is released under:
GNU General Public License
If you think the Android project ShoppingList 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 net.sledzdev.shoppinglist.event; // ww w . j a v a 2s . com import com.google.common.base.Optional; import com.google.common.eventbus.EventBus; /** * Created by Mariusz on 08.12.13. */ public class EventBusFactory { static private Optional<EventBus> eventBus = Optional.absent(); private EventBusFactory() {} static public EventBus getEventBus() { if (eventBus.isPresent()) { return eventBus.get(); } eventBus = Optional.of(new EventBus()); return eventBus.get(); } }