javax.infobus
Interface InfoBusPolicyHelper

All Known Implementing Classes:
DefaultPolicy

public abstract interface InfoBusPolicyHelper


Method Summary
 void canAddDataConsumer(InfoBus infobus, InfoBusDataConsumer consumer)
          Determines if the specifed InfoBus's canAddDataConsumer method can be executed, and throws a runtime Exception if not.
 void canAddDataController(InfoBus infobus, InfoBusDataController controller, int priority)
          Determines if the specifed InfoBus's canAddDataController method can be executed, and throws a runtime Exception if not.
 void canAddDataProducer(InfoBus infobus, InfoBusDataProducer producer)
          Determines if the specifed InfoBus's canAddDataProducer method can be executed, and throws a runtime Exception if not.
 void canFireItemAvailable(InfoBus infobus, java.lang.String dataItemName, InfoBusDataProducer producer)
          Determines if the specifed InfoBus's canFireItemAvailable method can be executed, and throws a runtime Exception if not.
 void canFireItemRevoked(InfoBus infobus, java.lang.String dataItemName, InfoBusDataProducer producer)
          Determines if the specifed InfoBus's canFireItemRevoked method can be executed, and throws a runtime Exception if not.
 void canGet(java.lang.String busName)
          Determines if the static InfoBus open method can be executed, and throws a runtime Exception if not.
 void canJoin(InfoBus infobus, InfoBusMember member)
          Determines if the specifed InfoBus's join method can be executed, and throws a runtime Exception if not.
 void canPropertyChange(InfoBus infobus, java.beans.PropertyChangeEvent event)
          Determines if the specifed InfoBus's proprtyChange method can be executed, and throws a runtime Exception if not.
 void canRegister(InfoBus infobus, InfoBusMember member)
          Determines if the specifed InfoBus's register method can be executed, and throws a runtime Exception if not.
 void canRequestItem(InfoBus infobus, java.lang.String dataItemName, InfoBusDataConsumer consumer)
          Determines if the specifed InfoBus's canRequestItem method can be executed, and throws a runtime Exception if not.
 java.lang.String generateDefaultName(java.lang.Object object)
          Generates a default InfoBus name from the given object.
 

Method Detail

generateDefaultName

public java.lang.String generateDefaultName(java.lang.Object object)
Generates a default InfoBus name from the given object. Ideally the default name should be shared by different objects that occupy a common design space -- e.g., different applets on a shared web page. A default name based on DocBase in AppletContext is an example of one which suits this purpose.

canGet

public void canGet(java.lang.String busName)
Determines if the static InfoBus open method can be executed, and throws a runtime Exception if not.

canJoin

public void canJoin(InfoBus infobus,
                    InfoBusMember member)
Determines if the specifed InfoBus's join method can be executed, and throws a runtime Exception if not.

canRegister

public void canRegister(InfoBus infobus,
                        InfoBusMember member)
Determines if the specifed InfoBus's register method can be executed, and throws a runtime Exception if not.

canPropertyChange

public void canPropertyChange(InfoBus infobus,
                              java.beans.PropertyChangeEvent event)
Determines if the specifed InfoBus's proprtyChange method can be executed, and throws a runtime Exception if not.

canAddDataController

public void canAddDataController(InfoBus infobus,
                                 InfoBusDataController controller,
                                 int priority)
Determines if the specifed InfoBus's canAddDataController method can be executed, and throws a runtime Exception if not.

canAddDataProducer

public void canAddDataProducer(InfoBus infobus,
                               InfoBusDataProducer producer)
Determines if the specifed InfoBus's canAddDataProducer method can be executed, and throws a runtime Exception if not.

canAddDataConsumer

public void canAddDataConsumer(InfoBus infobus,
                               InfoBusDataConsumer consumer)
Determines if the specifed InfoBus's canAddDataConsumer method can be executed, and throws a runtime Exception if not.

canFireItemAvailable

public void canFireItemAvailable(InfoBus infobus,
                                 java.lang.String dataItemName,
                                 InfoBusDataProducer producer)
Determines if the specifed InfoBus's canFireItemAvailable method can be executed, and throws a runtime Exception if not.

canFireItemRevoked

public void canFireItemRevoked(InfoBus infobus,
                               java.lang.String dataItemName,
                               InfoBusDataProducer producer)
Determines if the specifed InfoBus's canFireItemRevoked method can be executed, and throws a runtime Exception if not.

canRequestItem

public void canRequestItem(InfoBus infobus,
                           java.lang.String dataItemName,
                           InfoBusDataConsumer consumer)
Determines if the specifed InfoBus's canRequestItem method can be executed, and throws a runtime Exception if not.