org.glassfish.deployment.common
Class InstalledLibrariesResolver

java.lang.Object
  extended by 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

Constructor Summary
InstalledLibrariesResolver()
           
 
Method Summary
static String getExtDirFilesAsClasspath()
          Adds all the jar files in all of the ext dirs into a single string in classpath format.
static Set<String> getInstalledLibraries(ReadableArchive archive)
           
static void initializeInstalledLibRegistry(String libDir)
          check whether the optional packages have all their internal dependencies resolved
static boolean resolveDependencies(Manifest manifest, String archiveUri)
          resolves installed library dependencies
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 depencencies (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

public static String getExtDirFilesAsClasspath()
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.


getInstalledLibraries

public static Set<String> getInstalledLibraries(ReadableArchive archive)
                                         throws IOException
Throws:
IOException


Copyright © 2012 GlassFish Community. All Rights Reserved.