Package org.apache.solr.pkg
Class SolrPackageLoader
- java.lang.Object
-
- org.apache.solr.pkg.SolrPackageLoader
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class SolrPackageLoader 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
SolrPackageLoader.SolrPackage
represents a package definition in the packages.json
-
Constructor Summary
Constructors Constructor Description SolrPackageLoader(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)
SolrPackageLoader.SolrPackage
getPackage(String key)
PackageAPI
getPackageAPI()
Map<String,SolrPackageLoader.SolrPackage>
getPackages()
Optional<SolrPackageLoader.SolrPackage.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
-
SolrPackageLoader
public SolrPackageLoader(CoreContainer coreContainer)
-
-
Method Detail
-
getPackageVersion
public Optional<SolrPackageLoader.SolrPackage.Version> getPackageVersion(String pkg, String version)
-
getPackageAPI
public PackageAPI getPackageAPI()
-
getPackage
public SolrPackageLoader.SolrPackage getPackage(String key)
-
getPackages
public Map<String,SolrPackageLoader.SolrPackage> 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
-
-