Class BundleDescriptor

  • All Implemented Interfaces:
    java.lang.Comparable<BundleDescriptor>
    Direct Known Subclasses:
    BundleDescriptorImpl

    public abstract class BundleDescriptor
    extends ArtifactDescriptor
    implements java.lang.Comparable<BundleDescriptor>
    Information about a bundle. Note that this implementation is not synchronized. If multiple threads access a descriptor concurrently, and at least one of the threads modifies the descriptor structurally, it must be synchronized externally. However, once a descriptor is locked, it is safe to access it concurrently.
    • Constructor Detail

      • BundleDescriptor

        protected BundleDescriptor​(java.lang.String name)
    • Method Detail

      • getBundleSymbolicName

        public abstract java.lang.String getBundleSymbolicName()
        Get the bundle symbolic name.
        Returns:
        The bundle symbolic name
      • getBundleVersion

        public abstract java.lang.String getBundleVersion()
        Get the bundle version
        Returns:
        The bundle version
      • getBundleStartLevel

        @Deprecated
        public abstract int getBundleStartLevel()
        Deprecated.
        Use start order of the bundle
        Get the start level
        Returns:
        The start level.
      • getManifest

        public abstract java.util.jar.Manifest getManifest()
        If the artifact has a manifest, return it
        Returns:
        The manifest
      • isExportingPackage

        public boolean isExportingPackage​(java.lang.String packageName)
      • isExportingPackage

        public boolean isExportingPackage​(PackageInfo info)
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object