com.valhalla.pluginmanager
Class PluginChain

java.lang.Object
  extended bycom.valhalla.pluginmanager.PluginChain

public class PluginChain
extends java.lang.Object

The PluginChain keeps track of PluginEventListeners. Distributes events to the different PluginEventListeners

Author:
Adam Olsen

Constructor Summary
PluginChain()
           
 
Method Summary
static void addListener(PluginEventListener listener)
          Adds a PluginEventListener to the chain
static void fireEvent(PluginEvent e)
          Notifies all the EventListeners of an event
static void removeListener(PluginEventListener listener)
          Removes a listener from the chain
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginChain

public PluginChain()
Method Detail

addListener

public static void addListener(PluginEventListener listener)
Adds a PluginEventListener to the chain

Parameters:
listener - The listener to addd

removeListener

public static void removeListener(PluginEventListener listener)
Removes a listener from the chain

Parameters:
listener - The listener to remove

fireEvent

public static void fireEvent(PluginEvent e)
Notifies all the EventListeners of an event

Parameters:
e - the event to fire