org.python.core
Class CachedJarsPackageManager
public abstract
class
CachedJarsPackageManager
extends PackageManager
Abstract package manager that gathers info about statically known classes
from a set of jars. This info can be eventually cached. Off-the-shelf this
class offers a local file-system based cache impl.
Method Summary |
void | addJarToPackages(URL jarurl)
Gathers classes info from jar specified by jarurl URL. |
void | addJarToPackages(URL jarurl, boolean cache)
Gathers classes info from jar specified by jarurl URL. |
void | addJarToPackages(File jarfile)
Gathers classes info from jar specified by File jarfile. |
void | addJarToPackages(File jarfile, boolean cache)
Gathers classes info from jar specified by File jarfile. |
void | saveCache()
Write back cache index. |
public void addJarToPackages(URL jarurl)
Gathers classes info from jar specified by jarurl URL. Eventually just
using previously cached info. Eventually updated info is not cached.
Persistent cache storage access goes through inOpenCacheFile() and
outCreateCacheFile().
public void addJarToPackages(URL jarurl, boolean cache)
Gathers classes info from jar specified by jarurl URL. Eventually just
using previously cached info. Eventually updated info is (re-)cached if
param cache is true. Persistent cache storage access goes through
inOpenCacheFile() and outCreateCacheFile().
public void addJarToPackages(File jarfile)
Gathers classes info from jar specified by File jarfile. Eventually just
using previously cached info. Eventually updated info is not cached.
Persistent cache storage access goes through inOpenCacheFile() and
outCreateCacheFile().
public void addJarToPackages(File jarfile, boolean cache)
Gathers classes info from jar specified by File jarfile. Eventually just
using previously cached info. Eventually updated info is (re-)cached if
param cache is true. Persistent cache storage access goes through
inOpenCacheFile() and outCreateCacheFile().
public void saveCache()
Write back cache index. Index persistent storage is accessed through
outOpenIndex().