org.python.core

Class PathPackageManager

public abstract class PathPackageManager extends CachedJarsPackageManager

Path package manager. Gathering classes info dynamically from a set of directories in path {@link #searchPath}, and statically from a set of jars, like {@link CachedJarsPackageManager}.
Field Summary
PyListsearchPath
Constructor Summary
PathPackageManager()
Method Summary
voidaddClassPath(String path)
Adds "classpath" entry.
voidaddDirectory(File dir)
Add directory dir (if exists) to {@link #searchPath}.
PyListdoDir(PyJavaPackage jpkg, boolean instantiate, boolean exclpkgs)
booleanpackageExists(String pkg, String name)

Field Detail

searchPath

public PyList searchPath

Constructor Detail

PathPackageManager

public PathPackageManager()

Method Detail

addClassPath

public void addClassPath(String path)
Adds "classpath" entry. Calls {@link #addDirectory} if path refers to a dir, {@link #addJarToPackages(java.io.File, boolean)} with param cache true if path refers to a jar.

addDirectory

public void addDirectory(File dir)
Add directory dir (if exists) to {@link #searchPath}.

doDir

public PyList doDir(PyJavaPackage jpkg, boolean instantiate, boolean exclpkgs)

packageExists

public boolean packageExists(String pkg, String name)
Jython homepage