Class OSGiBundleParser


  • public class OSGiBundleParser
    extends Object
    • Constructor Detail

      • OSGiBundleParser

        public OSGiBundleParser()
    • Method Detail

      • parseManifest

        public static Bundle parseManifest​(org.osgi.framework.Bundle osgiBundle)
      • parsePluginElements

        public static List[] parsePluginElements​(DocumentBuilder db,
                                                 PluginRegistry mgr,
                                                 URL fileUrl,
                                                 Bundle plugin,
                                                 org.osgi.framework.Bundle osgiBundle)
        Method to parse Extensions in plug-in file.
        Parameters:
        db - DocumentBuilder to use for parsing
        mgr - the PluginManager
        fileUrl - URL of the plugin.xml file
        plugin - The Bundle
        osgiBundle - The OSGi Bundle
        Returns:
        array of 2 elements. first element is a List of extensionPoints, and 2nd element is a List of Extension
        Throws:
        NucleusException - if an error occurs during parsing
      • getDocumentBuilder

        public static DocumentBuilder getDocumentBuilder()
        Convenience method to create a document builder for parsing.
        Returns:
        The document builder
        Throws:
        NucleusException - if an error occurs creating the instance