| PXP documentation | view source | Contained in the PXP distribution. |
PXP::Plugin - Plugin class definition (used only in the internal registry)
<?xml version="1.0"?>
<plugin id="IMC::WebApp::TestPlugin" name="Test plugin" version="0.1" provider-name='IDEALX'>
</plugin>
A plugin groups together a set of extensions and/or extension-points.
A PXP::Plugin represents such a container as it is read and its
content loaded into the system. A common interface is provided to
access the configuration descriptors and the actual implementation
that has been loaded into the system.
NOTE: a PXP::Plugin object is NOT a plugin.
A real plugin, is just a set of Perl modules loaded according to the 'plugin.xml' descriptor file.
Plugin dependencies are supported with the <require> tag.
We support only a subset of the Eclipse plugin model.
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
Basic accessors for plugin properties.
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.
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
| PXP documentation | view source | Contained in the PXP distribution. |