- java.lang.Object
-
- org.datanucleus.plugin.OSGiBundleParser
-
public class OSGiBundleParser extends Object
-
-
Constructor Summary
Constructors Constructor Description OSGiBundleParser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DocumentBuildergetDocumentBuilder()Convenience method to create a document builder for parsing.static BundleparseManifest(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.
-
-
-
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 parsingmgr- the PluginManagerfileUrl- URL of the plugin.xml fileplugin- The BundleosgiBundle- 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
-
-