Class BundleDescriptorImpl

    • Constructor Detail

      • BundleDescriptorImpl

        public BundleDescriptorImpl​(org.apache.sling.feature.Artifact a,
                                    java.net.URL file,
                                    int startLevel)
                             throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getBundleSymbolicName

        public java.lang.String getBundleSymbolicName()
        Get the bundle symbolic name.
        Specified by:
        getBundleSymbolicName in class BundleDescriptor
        Returns:
        The bundle symbolic name
      • getBundleVersion

        public java.lang.String getBundleVersion()
        Get the bundle version
        Specified by:
        getBundleVersion in class BundleDescriptor
        Returns:
        The bundle version
      • getBundleStartLevel

        public int getBundleStartLevel()
        Get the start level
        Specified by:
        getBundleStartLevel in class BundleDescriptor
        Returns:
        The start level or 0 for the default.
      • getManifest

        public java.util.jar.Manifest getManifest()
        Description copied from class: BundleDescriptor
        If the artifact has a manifest, return it
        Specified by:
        getManifest in class BundleDescriptor
        Returns:
        The manifest
      • analyze

        protected void analyze()
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • extractPackages

        public static java.util.List<PackageInfo> extractPackages​(java.util.jar.Manifest m,
                                                                  java.lang.String headerName,
                                                                  java.lang.String defaultVersion,
                                                                  boolean checkOptional)
      • extractExportedPackages

        public static java.util.List<PackageInfo> extractExportedPackages​(java.util.jar.Manifest m)
      • extractImportedPackages

        public static java.util.List<PackageInfo> extractImportedPackages​(java.util.jar.Manifest m)
      • extractDynamicImportedPackages

        public static java.util.List<PackageInfo> extractDynamicImportedPackages​(java.util.jar.Manifest m)