com.mythicscape.batclient.interfaces
Interface PluginManager


public interface PluginManager


Method Summary
 void addPlugin(BatClientPlugin plugin)
          This adds the plugin into the plugin manager and calls init() on the plugin.
 void addProtocolListener(java.awt.event.ActionListener listener)
          Adds a listener for the custom protocol code "99" that may be sent for features in BatMUD.
 java.util.ArrayList<BatClientPlugin> getPlugins()
           
 java.util.ArrayList<BatClientPlugin> getPlugins(java.lang.String name)
          Get all plugins that have a particular name.
 void processPlugin(java.lang.String pluginName, java.lang.Object data)
           
 void removePlugin(java.lang.String name)
          This will remove the first occurance of a plugin with the name.
 void removeProtocolListener(java.awt.event.ActionListener listener)
           
 

Method Detail

processPlugin

void processPlugin(java.lang.String pluginName,
                   java.lang.Object data)

addPlugin

void addPlugin(BatClientPlugin plugin)
This adds the plugin into the plugin manager and calls init() on the plugin.

Parameters:
plugin -

getPlugins

java.util.ArrayList<BatClientPlugin> getPlugins()

getPlugins

java.util.ArrayList<BatClientPlugin> getPlugins(java.lang.String name)
Get all plugins that have a particular name.

Parameters:
name -
Returns:

removePlugin

void removePlugin(java.lang.String name)
This will remove the first occurance of a plugin with the name.

Parameters:
name -

addProtocolListener

void addProtocolListener(java.awt.event.ActionListener listener)
Adds a listener for the custom protocol code "99" that may be sent for features in BatMUD. Whenever this protocol is received, the listeners added here will receive an ActionEvent. The command in the actionevent is the actual message sent with the protocol code.

Parameters:
listener -

removeProtocolListener

void removeProtocolListener(java.awt.event.ActionListener listener)