Package org.apache.solr.pkg
Class PackageLoader
- java.lang.Object
-
- org.apache.solr.pkg.PackageLoader
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class PackageLoader extends Object implements Closeable
The class that holds a mapping of various packages and classloaders
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
PackageLoader.Package
represents a package definition in the packages.json
-
Constructor Summary
Constructors Constructor Description PackageLoader(CoreContainer coreContainer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Field Detail
-
LATEST
public static final String LATEST
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PackageLoader
public PackageLoader(CoreContainer coreContainer)
-
-
Method Detail
-
getPackageVersion
public Optional<PackageLoader.Package.Version> getPackageVersion(String pkg, String version)
-
getPackageAPI
public PackageAPI getPackageAPI()
-
getPackage
public PackageLoader.Package getPackage(String key)
-
getPackages
public Map<String,PackageLoader.Package> getPackages()
-
refreshPackageConf
public void refreshPackageConf()
-
getModified
public Map<String,List<PackageAPI.PkgVersion>> getModified(PackageAPI.Packages old, PackageAPI.Packages newPkgs)
-
notifyListeners
public void notifyListeners(String pkg)
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
-