public class

OsgiPluginXmlDescriptorParser

extends XmlDescriptorParser
java.lang.Object
   ↳ com.atlassian.plugin.parsers.XmlDescriptorParser
     ↳ com.atlassian.plugin.osgi.factory.OsgiPluginXmlDescriptorParser

Class Overview

Descriptor parser that handles special tasks for osgi plugins such as recording the originating module descriptor elements. Must only be used with OsgiPlugin instances.

Summary

Public Constructors
OsgiPluginXmlDescriptorParser(InputStream source, String... applicationKeys)
Protected Methods
ModuleDescriptor<?> createModuleDescriptor(Plugin plugin, Element element, ModuleDescriptorFactory moduleDescriptorFactory)
Passes module descriptor elements back to the OsgiPlugin
[Expand]
Inherited Methods
From class com.atlassian.plugin.parsers.XmlDescriptorParser
From class java.lang.Object
From interface com.atlassian.plugin.parsers.DescriptorParser

Public Constructors

public OsgiPluginXmlDescriptorParser (InputStream source, String... applicationKeys)

Parameters
source The XML descriptor source
applicationKeys The application keys to limit modules to, null for only unspecified
Throws
PluginParseException if there is a problem reading the descriptor from the XML InputStream.

Protected Methods

protected ModuleDescriptor<?> createModuleDescriptor (Plugin plugin, Element element, ModuleDescriptorFactory moduleDescriptorFactory)

Passes module descriptor elements back to the OsgiPlugin

Parameters
plugin The plugin
element The module element
moduleDescriptorFactory The module descriptor factory
Returns
  • The module, or null if the module cannot be found