de.mud.jta
Class Plugin
public class Plugin
extends java.lang.Object
Plugin base class for the JTA. A plugin is a component
for the PluginBus and may occur several times. If we have more than one
plugin of the same type the protected value id contains the unique plugin
id as configured in the configuration.
Maintainer: Matthias L. Jugel
$Id: Plugin.java 499 2005-09-29 08:24:54Z leo $- Matthias L. Jugel, Marcus Mei???ner
protected PluginBus | bus - holds the plugin bus used for communication between plugins
|
protected String | id - in case we have several plugins of the same type this contains their
unique id
|
Plugin(PluginBus bus, String id) - Create a new plugin and set the plugin bus used by this plugin and
the unique id.
|
void | error(String msg) - Print an error message to stderr prepending the plugin name.
|
String | getId() - Return identifier for this plugin.
|
bus
protected PluginBus bus
holds the plugin bus used for communication between plugins
id
protected String id
in case we have several plugins of the same type this contains their
unique id
Plugin
public Plugin(PluginBus bus,
String id)
Create a new plugin and set the plugin bus used by this plugin and
the unique id. The unique id may be null if there is only one plugin
used by the system.
bus
- the plugin busid
- the unique plugin id
error
public void error(String msg)
Print an error message to stderr prepending the plugin name. This method
is public due to compatibility with Java 1.1
getId
public String getId()
Return identifier for this plugin.