org.enhydra.barracuda.core.event
Interface EventGateway

All Known Implementing Classes:
ApplicationGateway, DefaultEventGateway

public interface EventGateway

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

setParent

public void setParent(EventGateway eg)
Set the parent event gateway. Null indicates its the root.

Parameters:
eg - the parent event gateway

getParent

public EventGateway getParent()
Get the parent event gateway. Returns null if it's the root.

Returns:
the parent event gateway

add

public void add(EventGateway eg)
Add an event gateway to this one

Parameters:
eg - the event gateway to be added

remove

public void remove(EventGateway eg)
Remove an event gateway from this one

Parameters:
eg - the event gateway to be removed

getChildren

public java.util.List getChildren()
Get a list of child gateways

Returns:
a list of child gateways

register

public void register(EventBroker eb)
Ask all interested parties to register with the EventBroker

Parameters:
eb - the event broker this gateway should use to register for events

deregister

public void deregister(EventBroker eb)
Ask all interested parties to de-register with the EventBroker

Parameters:
eb - the event broker this gateway should use to de-register for events


Copyright © 2001 Enhydra.org