|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.standrews.cs.nds.eventModel.eventBus.EventBus
public class EventBus
| Constructor Summary | |
|---|---|
EventBus()
Creates a new event bus. |
|
| Method Summary | |
|---|---|
void |
publishEvent(IEvent event)
Distributes the given event to all interested consumers. |
void |
register(IEventConsumer consumer)
Registers a new consumer with the event bus. |
void |
unregister(IEventConsumer consumer)
Removes a consumer from the event bus. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EventBus()
| Method Detail |
|---|
public void publishEvent(IEvent event)
publishEvent in interface IEventBusevent - the event to be distributedpublic void register(IEventConsumer consumer)
register in interface IEventBusconsumer - the event consumer to be registeredpublic void unregister(IEventConsumer consumer)
unregister in interface IEventBusconsumer - the event consumer to be removed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||