Package org.glassfish.deployment.common
Class InstalledLibrariesResolver
- java.lang.Object
-
- org.glassfish.deployment.common.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 Summary
Fields Modifier and Type Field Description static LoggerdeplLogger
-
Constructor Summary
Constructors Constructor Description InstalledLibrariesResolver()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static StringgetExtDirFilesAsClasspath()Deprecated.This will always return an empty string for JDK9+static Set<String>getInstalledLibraries(org.glassfish.api.deployment.archive.ReadableArchive archive)static voidinitializeInstalledLibRegistry(String libDir)check whether the optional packages have all their internal dependencies resolvedstatic booleanresolveDependencies(Manifest manifest, String archiveUri)resolves installed library dependencies
-
-
-
Field Detail
-
deplLogger
public static final Logger deplLogger
-
-
Method Detail
-
resolveDependencies
public static boolean resolveDependencies(Manifest manifest, String archiveUri)
resolves installed library dependencies- Parameters:
manifest- Manifest FilearchiveUri- 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
-
-