|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.unitesk.atp.tool.PluginManagerClass
com.unitesk.atp.tool.Tool
public abstract class Tool
The framework of an application with plugins.
Field Summary | |
---|---|
protected String |
default_mbox_class
|
protected String |
default_plugins_file_name
|
protected String |
default_properties_file_name
|
protected String |
mbox_class_property_name
|
protected String |
plugins_file_name
|
protected String |
plugins_file_property_name
|
protected FileStatus |
plugins_file_status
|
protected String |
properties_file_name
|
protected String |
properties_file_property_name
|
protected FileStatus |
properties_file_status
|
protected String |
version
|
Fields inherited from class com.unitesk.atp.tool.PluginManagerClass |
---|
config, mbox, name, table |
Constructor Summary | |
---|---|
Tool()
|
Method Summary | |
---|---|
static InputStream |
findFile(String name)
Finds file or resource. |
String |
getVersion()
Returns tool version. |
protected void |
initConfig()
|
protected void |
initMessageBox()
Initializes tool message box by instance of class with name specified by property <tool>.mbox.class. |
protected abstract void |
initName()
In addition to PluginManagerClass.name initialization this method should initialize
version |
protected void |
initPluginsTable()
Initializes tool plugins table from file with name specified by property <tool>.plugins.table. |
protected void |
usage()
Prints message describing tool usage. |
Methods inherited from class com.unitesk.atp.tool.PluginManagerClass |
---|
createPluginsTable, getMessageBox, getName, getPlugin, getPluginProperty, getPluginProperty, getPluginPropertyName, getProperty, getProperty, help, loadPlugins |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String version
protected String properties_file_property_name
protected String default_properties_file_name
protected String properties_file_name
protected FileStatus properties_file_status
protected String plugins_file_property_name
protected String default_plugins_file_name
protected String plugins_file_name
protected FileStatus plugins_file_status
protected String mbox_class_property_name
protected String default_mbox_class
Constructor Detail |
---|
public Tool()
Method Detail |
---|
public final String getVersion()
protected abstract void initName()
PluginManagerClass.name
initialization this method should initialize
version
initName
in class PluginManagerClass
protected void initConfig()
initConfig
in class PluginManagerClass
protected void initMessageBox()
PrintStreamMessageBox
.
Class should have constructor without parameters.
initMessageBox
in class PluginManagerClass
protected void initPluginsTable()
initPluginsTable
in class PluginManagerClass
protected final void usage()
public static InputStream findFile(String name)
name
- The name of file.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |