public class PackageLoader extends Object implements Closeable
Modifier and Type | Class and Description |
---|---|
class |
PackageLoader.Package
represents a package definition in the packages.json
|
Constructor and Description |
---|
PackageLoader(CoreContainer coreContainer) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Map<String,List<PackageAPI.PkgVersion>> |
getModified(PackageAPI.Packages old,
PackageAPI.Packages newPkgs) |
PackageLoader.Package |
getPackage(String key) |
PackageAPI |
getPackageAPI() |
Map<String,PackageLoader.Package> |
getPackages() |
Optional<PackageLoader.Package.Version> |
getPackageVersion(String pkg,
String version) |
void |
notifyListeners(String pkg) |
void |
refreshPackageConf() |
public static final String LATEST
public PackageLoader(CoreContainer coreContainer)
public Optional<PackageLoader.Package.Version> getPackageVersion(String pkg, String version)
public PackageAPI getPackageAPI()
public PackageLoader.Package getPackage(String key)
public Map<String,PackageLoader.Package> getPackages()
public void refreshPackageConf()
public Map<String,List<PackageAPI.PkgVersion>> getModified(PackageAPI.Packages old, PackageAPI.Packages newPkgs)
public void notifyListeners(String pkg)
public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.