|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ceryle.plugin.PluginBase
public class PluginBase
This is the base class for all Ceryle plugins. This implements the
Plugin interface.
The basic Ceryle application services are provided via one single
object, Services. The getServices()
method thus provides most of the necessary functionality, with
several convenience methods for messaging.
Desktop,
MessageHandler,
PropertyManager,
Services| Field Summary | |
|---|---|
protected static Plugin |
m_plugin
The singleton instance of this plugin. |
| Constructor Summary | |
|---|---|
protected |
PluginBase(Desktop desktop,
String path)
Constructor for a base Ceryle plugin. |
| Method Summary | |
|---|---|
boolean |
closing()
Warns of the imminent closing of the plugin, allowing it to finish up any remaining tasks prior to disposal. |
void |
dispose()
Disposes of the plugin. |
void |
error(String id)
Display an error message id. |
static Plugin |
getInstance(Desktop desktop,
String path)
Initializes the plugin and its services. |
String |
getName()
Returns this plugin's name/identifier (i.e., its path). |
Services |
getServices()
Returns the singleton instance of Services. |
ViewManager |
getViewManager()
Returns the Ceryle ViewManager. |
void |
init()
Initializes this plugin's services and features. |
void |
loadClass(String path)
Loads a Java class whose path identifier is the String path. |
void |
log(String message)
Write the String message to the log file, if open. |
void |
message(String id)
Display an informational message id. |
void |
warning(String id)
Display a warning message id. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static Plugin m_plugin
| Constructor Detail |
|---|
protected PluginBase(Desktop desktop,
String path)
throws PluginException
PluginException| Method Detail |
|---|
public static Plugin getInstance(Desktop desktop,
String path)
throws PluginException
PluginExceptionpublic String getName()
public void init()
throws PluginException
PluginException
public void loadClass(String path)
throws PluginException
loadClass in interface PluginPluginExceptionpublic Services getServices()
Services.
public ViewManager getViewManager()
ViewManagerpublic void log(String message)
public void message(String id)
public void warning(String id)
public void error(String id)
public boolean closing()
closing in interface Disposablepublic void dispose()
dispose in interface Disposable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||