Class InstalledLibrariesResolver


  • public class InstalledLibrariesResolver
    extends Object
    This class resolves the dependencies between optional packages (installed libraries) and also between apps/stand-alone modules that depend on optional packages (installed libraries)
    Author:
    Sheetal Vartak
    • Field Detail

      • deplLogger

        public static final Logger deplLogger
    • Constructor Detail

      • InstalledLibrariesResolver

        public InstalledLibrariesResolver()
    • Method Detail

      • resolveDependencies

        public static boolean resolveDependencies​(Manifest manifest,
                                                  String archiveUri)
        resolves installed library dependencies
        Parameters:
        manifest - Manifest File
        archiveUri - archive
        Returns:
        status indicating whether all dependencies (transitive) is resolved or not
      • initializeInstalledLibRegistry

        public static void initializeInstalledLibRegistry​(String libDir)
        check whether the optional packages have all their internal dependencies resolved
        Parameters:
        libDir - libraryDirectory
      • getExtDirFilesAsClasspath

        @Deprecated
        public static String getExtDirFilesAsClasspath()
        Deprecated.
        This will always return an empty string for JDK9+
        Adds all the jar files in all of the ext dirs into a single string in classpath format. Returns the empty string if there are no jar files in any ext dirs.
        Returns:
        an empty string
      • getInstalledLibraries

        public static Set<String> getInstalledLibraries​(org.glassfish.api.deployment.archive.ReadableArchive archive)
                                                 throws IOException
        Throws:
        IOException