|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An EventGateway simply represents a gateway to a set of event handlers within a system. Gateways are heirarchical in that they may contain other EventGateways, and may have a parent gateway. Invoking register on a gateway should cause it to a) register all known enties that are interested in receiving events from the EventBroker b) invoke register for any gateways it contains Invoking deregister has the opposite effect.
Method Summary | |
void |
add(EventGateway eg)
Add an event gateway to this one |
void |
deregister(EventBroker eb)
Ask all interested parties to de-register with the EventBroker |
java.util.List |
getChildren()
Get a list of child gateways |
EventGateway |
getParent()
Get the parent event gateway. |
void |
register(EventBroker eb)
Ask all interested parties to register with the EventBroker |
void |
remove(EventGateway eg)
Remove an event gateway from this one |
void |
setParent(EventGateway eg)
Set the parent event gateway. |
Method Detail |
public void setParent(EventGateway eg)
eg
- the parent event gatewaypublic EventGateway getParent()
public void add(EventGateway eg)
eg
- the event gateway to be addedpublic void remove(EventGateway eg)
eg
- the event gateway to be removedpublic java.util.List getChildren()
public void register(EventBroker eb)
eb
- the event broker this gateway should use to
register for eventspublic void deregister(EventBroker eb)
eb
- the event broker this gateway should use to
de-register for events
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |