public class EventBusClient extends Object
EventBus. That is, this class
exposes only registration and deregistration functionality, allowing it to
be safely passed to client classes such that they will be unable to spawn new
events and add event queues directly.| Constructor and Description |
|---|
EventBusClient(EventBus bus) |
| Modifier and Type | Method and Description |
|---|---|
void |
deregister(Object object)
Removes the given object from any event queues that it may be a
member of.
|
void |
register(Object object)
Registers all methods of the given object annotated with
EventHandler. |
public EventBusClient(EventBus bus)
public void register(Object object)
EventHandler.o - the object to processEventBus#registerMethod(Object, Method, int)public void deregister(Object object)
object - the object to removeCopyright © 2014. All rights reserved.