com.objectplanet.survey.plugin
Class PluginBusAdmin

java.lang.Object
  |
  +--com.objectplanet.survey.plugin.PluginBusAdmin

public class PluginBusAdmin
extends java.lang.Object

This class is opinio's event notification mechanism for administation type events.

Author:
Torgeir Punnerud
Created:
26. august 2002

Constructor Summary
PluginBusAdmin()
           
 
Method Summary
static void addToBus(IPBComponent comp)
          Adds a component to the bus.
static IPBComponent[] getComponents()
          Returns an array of all components connected to the bus.
static void removeFromBus(IPBComponent comp)
          Removes a component from the bus.
static void send(PluginBusEvent event)
          Sends an event to all components on the bus.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginBusAdmin

public PluginBusAdmin()
Method Detail

getComponents

public static IPBComponent[] getComponents()
Returns an array of all components connected to the bus.

Returns:
The components value

addToBus

public static void addToBus(IPBComponent comp)
Adds a component to the bus. It will receive all events sent on the bus.

Parameters:
comp - The component to add

removeFromBus

public static void removeFromBus(IPBComponent comp)
Removes a component from the bus.

Parameters:
comp - The component to remove

send

public static void send(PluginBusEvent event)
Sends an event to all components on the bus. The event will be sent to all components in turn, with the original sender receiving it last.

Parameters:
event - The event

Copyright © ObjectPlanet Inc. All Rights Reserved.

Built on May 7 2003