public enum DefaultEventBus extends Enum<DefaultEventBus>
EventBus factory that will return a singleton implementation. By
default, a BasicEventBus implementation will be returned via the
factory methods.| Modifier and Type | Method and Description |
|---|---|
static EventBus |
getInstance() |
static boolean |
hasPendingEvents() |
static void |
publish(Object event) |
static void |
subscribe(Object subscriber) |
static void |
unsubscribe(Object subscriber) |
static DefaultEventBus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DefaultEventBus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static DefaultEventBus[] values()
for (DefaultEventBus c : DefaultEventBus.values()) System.out.println(c);
public static DefaultEventBus valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic static EventBus getInstance()
public static void subscribe(Object subscriber)
public static void unsubscribe(Object subscriber)
public static void publish(Object event)
public static boolean hasPendingEvents()
Copyright © 2011–2014 Intelligents-ia. All rights reserved.