public class EventBus extends Object implements EventPublisher
Constructor and Description |
---|
EventBus(TimeService stopWatch) |
Modifier and Type | Method and Description |
---|---|
Long |
getTime() |
<T extends Event> |
registerHandlerFor(Class<T> eventType,
EventHandler<T> handler) |
void |
send(Event event) |
public EventBus(TimeService stopWatch)
public Long getTime()
public void send(Event event)
public <T extends Event> void registerHandlerFor(Class<T> eventType, EventHandler<T> handler)
registerHandlerFor
in interface EventPublisher
Copyright © 2017. All Rights Reserved.