public interface DescriptorParser
XmlDescriptorParser,
DescriptorParserFactory| Modifier and Type | Method and Description |
|---|---|
ModuleDescriptor<?> |
addModule(ModuleDescriptorFactory moduleDescriptorFactory,
Plugin plugin,
org.dom4j.Element module)
Create a new module and initialise it with the plugin, then return it.
|
Plugin |
configurePlugin(ModuleDescriptorFactory moduleDescriptorFactory,
Plugin plugin)
Sets the configuration on the plugin argument to match the configuration specified in the
plugin descriptor (typically an XML file).
|
String |
getKey() |
PluginInformation |
getPluginInformation() |
int |
getPluginsVersion() |
boolean |
isSystemPlugin()
Deprecated.
The parser will set the SystemPlugin flag within the configurePlugin() method, so there is no need to use this externally.
See PLUG-415. Deprecated since 2.3.0
|
Plugin configurePlugin(ModuleDescriptorFactory moduleDescriptorFactory, Plugin plugin) throws PluginParseException
moduleDescriptorFactory - a factory for instantiating the required plugin modulesplugin - the plugin whose configuration will be modifiedPluginParseException - if there was an error getting information about the pluginString getKey()
boolean isSystemPlugin()
int getPluginsVersion()
PluginInformation getPluginInformation()
ModuleDescriptor<?> addModule(ModuleDescriptorFactory moduleDescriptorFactory, Plugin plugin, org.dom4j.Element module)
In the event of a problem loading the module, return an UnrecognisedModuleDescriptor
with error.
moduleDescriptorFactory - basic factory, may be overriddenplugin - that the module will be initialised withmodule - to createCopyright © 2019 Atlassian. All rights reserved.