public class OSGiBundleParser extends Object
Constructor and Description |
---|
OSGiBundleParser() |
Modifier and Type | Method and Description |
---|---|
static DocumentBuilder |
getDocumentBuilder()
Convenience method to create a document builder for parsing.
|
static Bundle |
parseManifest(org.osgi.framework.Bundle osgiBundle) |
static List[] |
parsePluginElements(DocumentBuilder db,
PluginRegistry mgr,
URL fileUrl,
Bundle plugin,
org.osgi.framework.Bundle osgiBundle)
Method to parse Extensions in plug-in file.
|
public static Bundle parseManifest(org.osgi.framework.Bundle osgiBundle)
public static List[] parsePluginElements(DocumentBuilder db, PluginRegistry mgr, URL fileUrl, Bundle plugin, org.osgi.framework.Bundle osgiBundle)
db
- DocumentBuilder to use for parsingmgr
- the PluginManagerfileUrl
- URL of the plugin.xml fileplugin
- The BundleosgiBundle
- The OSGi BundleNucleusException
- if an error occurs during parsingpublic static DocumentBuilder getDocumentBuilder()
NucleusException
- if an error occurs creating the instanceCopyright © 2019. All rights reserved.