Known Direct Subclasses
OsgiPluginXmlDescriptorParser |
Descriptor parser that handles special tasks for osgi plugins such as recording the
originating module descriptor elements. |
|
Class Overview
Provides access to the descriptor information retrieved from an XML InputStream.
Uses the dom4j SAXReader to parse the XML stream into a document
when the parser is constructed.
Public Constructors
public
XmlDescriptorParser
(Document source, String... applicationKeys)
Constructs a parser with an already-constructed document
Parameters
source
| the source document |
applicationKeys
| the application key to filter modules with, null for all unspecified |
public
XmlDescriptorParser
(InputStream source, String... applicationKeys)
Constructs a parser with a stream of an XML document for a specific application
Parameters
source
| The descriptor stream |
applicationKeys
| the application key to filter modules with, null for all unspecified |
Public Methods
Sets the configuration on the plugin argument to match the configuration specified in the
plugin descriptor (typically an XML file).
Parameters
moduleDescriptorFactory
| a factory for instantiating the required plugin modules |
plugin
| the plugin whose configuration will be modified |
Returns
- the original plugin with the configuration changed and the module descriptors added
public
int
getPluginsVersion
()
public
boolean
isSystemPlugin
()
Protected Methods
protected
Document
getDocument
()