org.xoe.core.packages
Class PackageManager
java.lang.Object
|
+--org.xoe.core.packages.PackageManager
- public class PackageManager
- extends Object
Pure singleton (all-static) class for managing packages both
on and off the system.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
batchInstallTimer
public static long batchInstallTimer
addPackageServer
public static void addPackageServer(String type,
String url)
getDescription
public static PackageDescription getDescription(String name)
getDescription
public static PackageDescription getDescription(String name,
String version)
batchInstall
public static void batchInstall(String[] names)
throws PackageException
search
public static SearchResults search(IPackageQuery in_q)
getUninstallOption
public static InstallOption getUninstallOption(PackageDescription pkg)
getInstalledPackages
public static PackageDescription[] getInstalledPackages()
commit
public static void commit(InstallOption opt)
throws PackageException
installPackage
public static void installPackage(URL url)
throws IOException,
PackageException
installPackage
public static void installPackage(XoePackage pkg)
throws PackageException
getActionSet
public static PackageActionSet getActionSet()
performQuery
public static void performQuery(IPackageQuery in_q,
Vector out_res)
- First searches locally, then remotely.
This is a utilty method -- use wisely.
This returns all matching packages, regardless of conflicts;
Therefore, these pacages may not be installable, due to conflicts
performQueryLocally
public static void performQueryLocally(IPackageQuery in_q,
Vector out_res)
performQueryRemotely
public static void performQueryRemotely(IPackageQuery in_q,
Vector out_res)
performQuery
public static void performQuery(IPackageQuery in_q,
Vector out_res,
boolean all)
retrievePackageLocally
public static XoePackage retrievePackageLocally(PackageDescription desc)
forgetPackages
public static void forgetPackages()
retrievePackage
public static XoePackage retrievePackage(PackageDescription desc)
throws PackageNotFoundException