Class Bundle

java.lang.Object
org.datanucleus.plugin.Bundle

public class Bundle extends Object
A Plug-in (OSGi Bundle) definition. Represents the XML declaration.
  • Field Details

    • symbolicName

      private final String symbolicName
      unique id - bundle symbolic name *
    • vendorName

      private final String vendorName
      vendor name *
    • name

      private final String name
      name *
    • version

      private final String version
      plugin version *
    • manifestLocation

      private final URL manifestLocation
      location of the manifest.mf file *
    • requireBundle

      private List<Bundle.BundleDescription> requireBundle
      Set of BundleDescription objects representing Require-Bundle entries
  • Constructor Details

    • Bundle

      public Bundle(String symbolicName, String name, String vendorName, String version, URL manifestLocation)
      Constructor
      Parameters:
      symbolicName - the unique id - bundle symbolic name
      name - the name
      vendorName - the vendor name
      version - the version number
      manifestLocation - the path to the declaration file
  • Method Details

    • getSymbolicName

      public String getSymbolicName()
      Accessor for the plug-in id - bundle symbolic name
      Returns:
      id of the plug-in
    • getVendorName

      public String getVendorName()
      Accessor for the provider name of this plug-in
      Returns:
      provider name
    • getVersion

      public String getVersion()
      Acessor for the version of this plug-in
      Returns:
      version
    • getManifestLocation

      public URL getManifestLocation()
      Acessor for the location of the manifest.mf file
      Returns:
      the manifest.mf location
    • getName

      public String getName()
      Acessor for the plug-in name
      Returns:
      plug-in name
    • setRequireBundle

      public void setRequireBundle(List<Bundle.BundleDescription> requireBundle)
      Acessor for the RequireBundle.
      Parameters:
      requireBundle - A List of Bundle.BundleDescription elements
    • getRequireBundle

      public List<Bundle.BundleDescription> getRequireBundle()
      Acessor for the RequireBundle
      Returns:
      A List of Bundle.BundleDescription elements
    • toString

      public String toString()
      Overrides:
      toString in class Object