public class OsgiPluginXmlDescriptorParser extends XmlDescriptorParser
OsgiPlugin instances.| Constructor and Description |
|---|
OsgiPluginXmlDescriptorParser(InputStream source,
Iterable<InputStream> supplementalSources,
Set<Application> applications)
Creates a DescriptorParser that can read multiple XML files
|
OsgiPluginXmlDescriptorParser(InputStream source,
Set<Application> applications) |
| Modifier and Type | Method and Description |
|---|---|
ModuleDescriptor<?> |
addModule(ModuleDescriptorFactory moduleDescriptorFactory,
Plugin plugin,
org.dom4j.Element module)
Passes module descriptor elements back to the
OsgiPlugin |
protected ModuleDescriptor<?> |
createModuleDescriptor(Plugin plugin,
org.dom4j.Element element,
ModuleDescriptorFactory moduleDescriptorFactory)
Passes module descriptor elements back to the
OsgiPlugin |
configurePlugin, createDocument, createPluginInformation, getDocument, getKey, getPluginInformation, getPluginsVersion, isSystemPlugin, mergeDocumentspublic OsgiPluginXmlDescriptorParser(InputStream source, Set<Application> applications) throws PluginParseException
source - The XML descriptor sourceapplications - The application keys to limit modules to, null for only unspecifiedPluginParseException - if there is a problem reading the descriptor from the XML InputStream.public OsgiPluginXmlDescriptorParser(InputStream source, Iterable<InputStream> supplementalSources, Set<Application> applications) throws PluginParseException
source - The descriptor streamsupplementalSources - streams that contain additional module descriptorsapplications - the application key to filter modules with, null for all unspecifiedPluginParseException - if there is a problem reading the descriptor from the XML InputStream.protected ModuleDescriptor<?> createModuleDescriptor(Plugin plugin, org.dom4j.Element element, ModuleDescriptorFactory moduleDescriptorFactory) throws PluginParseException
OsgiPlugincreateModuleDescriptor in class XmlDescriptorParserplugin - The pluginelement - The module elementmoduleDescriptorFactory - The module descriptor factoryPluginParseExceptionpublic ModuleDescriptor<?> addModule(ModuleDescriptorFactory moduleDescriptorFactory, Plugin plugin, org.dom4j.Element module)
OsgiPluginaddModule in interface DescriptorParseraddModule in class XmlDescriptorParsermoduleDescriptorFactory - basic factory, may be overriddenplugin - that the module will be initialised withmodule - to createCopyright © 2019 Atlassian. All rights reserved.