Documentation of 'jas2.plugin.package-summary' Java class
jas2.plugin

Package jas2.plugin

Defines the interfaces that other programs can use to "plug themselves in" to JAS.

See: Description

Package jas2.plugin Description

Defines the interfaces that other programs can use to "plug themselves in" to JAS.

Currently we support two different types of plugins:

  • Extension Plugins - loaded when JAS starts, and normally remain loaded for the entire JAS session.
  • Job Plugins - loaded within the context of a Job. Anything done by a job plugin is automatically undone when the current job is closed.

The first type of plugin normally extends class ExtensionPlugin, and the latter Plugin (should really be called JobPlugin, but for historical reasons just called Plugin). As an alternative to extending Plugin or ExtensionPlugin plugins can instead just implement IPlugin or IExtensionPlugin respectively.

Plugins communicate with the application they are embedded in using a PluginContext. This context is installed after the plugin's constructor is called but before the init() method is called, so most initialization should normally be done in the init method rather than the constructor.

Actions currently supported by both types of plugin include:

  • Installing menus.
  • Opening and closing pages, control panels or consoles.
  • Dispay error messages
  • Send messages to the status region of the GUI

In addition ExtensionPlugins can install new Data Interface Modules (DIMS) and Job plugins can receive notification of changes in run state and get a copy of the current event.

Class Diagram

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.