de.mud.jta
Class PluginLoader
- PluginBus
public class PluginLoader
extends java.lang.Object
The plugin loader tries to load the plugin by name and returns a
corresponding plugin object. It takes care of connecting filter
plugins
Maintainer: Matthias L. Jugel
$Id: PluginLoader.java 499 2005-09-29 08:24:54Z leo $- Matthias L. Jugel, Marcus Mei???ner
static String | ID - holds the current version id
|
PluginLoader() - Create new plugin loader and set up with default plugin path.
|
PluginLoader(Vector path) - Create new plugin loader and set up with specified plugin path.
|
ID
public static final String ID
holds the current version id
PluginLoader
public PluginLoader()
Create new plugin loader and set up with default plugin path.
PluginLoader
public PluginLoader(Vector path)
Create new plugin loader and set up with specified plugin path.
path
- the default search path for plugins
addPlugin
public Plugin addPlugin(String name,
String id)
Add a new plugin to the system and register the plugin load as its
communication bus. If the plugin is a filter plugin and if it is
not the first filter the last added filter will be set as its filter
source.
name
- the string name of the plugin
- the newly created plugin or null in case of an error
broadcast
public Object broadcast(PluginMessage message)
Implementation of the plugin bus. Broadcast a message to all
listeners we know of. The message takes care that the right
methods are called in the listeners.
- broadcast in interface PluginBus
message
- the plugin message to be sent
- the answer to the sent message
getPlugins
public Map getPlugins()
replacePlugin
public Plugin replacePlugin(String name,
String id)
Replace a plugin with a new one, actually reloads the plugin.
name
- name of plugin to be replacedid
- unique id