NAME
PXP::Plugin - Plugin class definition
SYNOPSIS
<?xml version="1.0"?>
<plugin id="IMC::WebApp::TestPlugin" name="Test plugin" version="0.1" provider-name='IDEALX'>
</plugin>
DESCRIPTION
A plugin is a component that extends or modifies the IMC platform. Plugins group together a set of Extension
s, ExtensionPoint
s and Resources
.
The plugin class defines a common interface for accessing plugin descriptors and implementation.
A plugin object is NOT a plugin. A plugin object is only an accessor for plugin properties and functions.
A real plugin, is just a set of Perl modules loaded according to the 'plugin.xml' descriptor file.
Plugin dependencies is supported with the <require> tag.
Limitations
We support only a subset of the Eclipse plugin model.
- instantiateExtension($class, @args)
-
Load a perl class ($class) and instantiate a new object of this class, with optional arguments for the object initializer (@args)
Return the new instance or undef if the class could not be loaded
- name, id, version, providerName
-
Basic accessors for plugin properties.
- resourceDir
-
Accessor for the 'resourceDir' attribute. 'resourceDir' points to the directory containing the resources bundled with the plugin, such as config files, templates, etc.
This method is called by the PluginRegistry as it loads the plugin.
SEE ALSO
PXP::PluginRegistry
, <PXP::ExtensionPoint>, PXP::Extension
See the article on eclipse.org describing the plugin architecture : http://www.eclipse.org/articles/Article-Plug-in-architecture/plugin_architecture.html
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 470:
You forgot a '=back' before '=head1'