PluginDescriptor¶
-
public class
PluginDescriptor
¶ PluginDescriptor is a descriptor containing the configurations of the plugin it represents.
<plugin id="nmtoken" name="nmtoken"? version="nmtoken"? provider-name="nmtoken"? class="nmtoken"?> <parameters>? <parameter name="nmtoken" value="nmtoken" />* </parameters> <runtime>? <library name="nmtoken" />* </runtime> <requires>? <import plugin="nmtoken" />* </requires> <extension-point id="nmtoken" class="nmtoken" name="nmtoken"? />* <extension point="nmtoken" name="nmtoken"?>* <parameter name="nmtoken" value="nmtoken" />* </extension> </plugin>
Author: Hugo Y. K. Lam
Fields¶
Constructors¶
PluginDescriptor¶
PluginDescriptor¶
-
public
PluginDescriptor
(InputStream ins)¶ Creates a new instance of PluginDescriptor.
Parameters: - ins – the plugin descriptor input stream.
Throws: - PluginException – if unable to create the plugin descriptor.
Methods¶
getExtensionPoints¶
-
public Collection
getExtensionPoints
()¶ Creates a collection of extension points according to the specified plugin descriptor.
Returns: a collection of extension points.
getExtensions¶
-
public Collection
getExtensions
()¶ Creates a collection of extensions according to the specified plugin descriptor.
Returns: a collection of extensions.
getHandlerClass¶
getImports¶
-
public Collection
getImports
()¶ Creates a collection of imports according to the specified plugin descriptor.
Returns: a collection of imports.
getLibraries¶
-
public Collection
getLibraries
()¶ Creates a collection of libraries according to the specified plugin descriptor.
Returns: a collection of libraries.
getParameters¶
-
public Properties
getParameters
()¶ Gets the plugin parameters.
Returns: the plugin parameters.
getParent¶
-
public PluginComponent
getParent
()¶ Gets the parent plugin component of this descriptor.
Returns: the parent plugin component of this descriptor.
getProviderName¶
setParent¶
-
public void
setParent
(PluginComponent parent)¶ Sets the parent plugin component of this descriptor.
Parameters: - parent – the parent plugin component of this descriptor.