|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This component manages the event handling mechanism in the portal.
The event mechanism is based on the publisher/subscriber principle.
An interested component (a Receiver
can subscribe itself for a specific class (or classes) of events.
All Events have a common ancestor type Event
and the event types are
identified by a (sub)class
Field Summary | |
static String |
ROLE
Represents the role of the service |
Method Summary | |
void |
processEvents()
Process the events |
void |
send(Event event)
Publish an event. |
void |
subscribe(Receiver receiver)
Subscribes a receiver for a specific type of event. |
void |
unsubscribe(Receiver receiver)
Unsubscribes a receiver for all events. |
Field Detail |
public static final String ROLE
Method Detail |
public void processEvents() throws ProcessingException
ProcessingException
public void send(Event event)
event
- The event to broadcast.public void subscribe(Receiver receiver)
public void unsubscribe(Receiver receiver)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |