javax.infobus
Interface InfoBusDataProducer

All Known Implementing Classes:
InfoBusDataProducerProxy

public abstract interface InfoBusDataProducer
extends InfoBusEventListener

Implementers of InfoBusDataProducer assume the role of data providers on an InfoBus. InfoBusDataProducers can announce and revoke availability of their data. They also register with their InfoBus in order to hear requests for data from consumers on the bus.

An InfoBusDataProducer 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 InfoBusDataProducers to track. The base interface, InfoBusEventListener, extends java.beans.PropertyChangeListener to accomplish this, which in turn requires InfoBusDataProducers to implement a propertyChange() method.


Method Summary
 void dataItemRequested(InfoBusItemRequestedEvent event)
          This method is called by the InfoBus class on behalf of a data consumer that is requesting a data item by name.
 
Methods inherited from interface java.beans.PropertyChangeListener
propertyChange
 

Method Detail

dataItemRequested

public void dataItemRequested(InfoBusItemRequestedEvent event)
This method is called by the InfoBus class on behalf of a data consumer that is requesting a data item by name. The suggested implementation: