|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IEventBroker
This interface must be implemented by a event broker object. A event broker handles all events fired by the framework and distributes them to receivers.
| Method Summary | |
|---|---|
IEvent |
createEvent(int type)
Create a new event object with the given type. |
IEvent |
createEvent(int type,
Object data)
Create a new event object with the given type and data. |
IEvent |
createEvent(int type,
Object data,
IEventCondition cond)
Create a new event object with the given type, data and condition. |
IEventCondition |
createEventCondition()
Create a empty event condition object. |
void |
register(IEventReceiver receiver,
IEvent event)
Register a new event receiver for a given event. |
void |
register(IEventSender sender)
Registers a new event sender. |
void |
send(IEventSender sender,
IEvent event)
Sends an event from a specific sender. |
void |
shutdown()
This method is called on shutdown time by the runtime object. |
void |
startup()
This method is called on startup time by the runtime object. |
void |
unregister(IEventReceiver receiver,
IEvent event)
Unregister a new event receiver for a given event. |
void |
unregister(IEventSender sender)
Unregisters a new event sender. |
| Method Detail |
|---|
void send(IEventSender sender,
IEvent event)
sender - sender of the eventevent - the eventvoid register(IEventSender sender)
sender - the sender to be registered.
void register(IEventReceiver receiver,
IEvent event)
receiver - the receiver to be registered.event - the eventvoid unregister(IEventSender sender)
sender - the sender to be unregistered.
void unregister(IEventReceiver receiver,
IEvent event)
receiver - the receiver to be unregistered.event - the event
IEvent createEvent(int type,
Object data,
IEventCondition cond)
type - type of the eventdata - data of the eventcond - condition of the event.
IEvent createEvent(int type,
Object data)
type - type of the eventdata - data of the event
IEvent createEvent(int type)
type - type of the event
IEventCondition createEventCondition()
void startup()
void shutdown()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||