public class ClassDirectory extends Object
Directory to look up where classes might be found. It loads lists of classes from META-INF/classes.lst and exposes them for use in resolving unresolved imports.
Modifier and Type | Method and Description |
---|---|
static ClassDirectory |
forClassLoader(ClassLoader loader)
Get a class directory for a specific class loader.
|
static ClassDirectory |
forCurrentClassLoader()
Get a class directory for the current thread’s class loader.
|
Set<String> |
getPackages(String name)
Get the packages that contain a class with the specified name.
|
public static ClassDirectory forCurrentClassLoader()
Get a class directory for the current thread’s class loader.
public static ClassDirectory forClassLoader(ClassLoader loader)
Get a class directory for a specific class loader.
loader
- The class loader.