|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
InfoBus users that seek data from InfoBusDataProducers do so by implementing the InfoBusDataConsumer interface. Implementers can request DataItems of a specific name and also register with their InfoBus to receive announcements of data availability from producers.
An InfoBusDataConsumer must track the InfoBus property of the InfoBusMember that obtained the bus for them, so that if the setInfoBus method is called with a new InfoBus, the producer will know to register with the new bus and deregister with the old. This is the only bound property that the InfoBus protocol requires InfoBusDataConsumers to track. The base interface, InfoBusEventListener, extends java.beans.PropertyChangeListener to accomplish this, which in turn requires InfoBusDataConsumers to implement a propertyChange() method.
Method Summary | |
void |
dataItemAvailable(InfoBusItemAvailableEvent event)
This method is called by the InfoBus class on behalf of a data producer that is announcing the availability of a new data item by name. |
void |
dataItemRevoked(InfoBusItemRevokedEvent event)
This method is called by the InfoBus class on behalf of a data producer that is revoking the availability of a previously announced data item. |
Methods inherited from interface java.beans.PropertyChangeListener |
propertyChange |
Method Detail |
public void dataItemAvailable(InfoBusItemAvailableEvent event)
The suggested implementation of dataItemAvailable:
event
- the InfoBus event for the availability of the data itempublic void dataItemRevoked(InfoBusItemRevokedEvent event)
The suggested implementation of dataItemRevoked:
event
- the InfoBus event for the revocation of the data item
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |