public class ClassPath extends Object implements ClassPathScanner.Callback
Modifier and Type | Field and Description |
---|---|
protected List<BundleFile> |
bundles |
protected List<BundleFile> |
jars |
protected SharedClassLoader |
loader |
protected List<BundleFile> |
nestedJars |
protected File |
nestedJARsDir |
Constructor and Description |
---|
ClassPath(SharedClassLoader loader,
File nestedJARsDir) |
Modifier and Type | Method and Description |
---|---|
List<BundleFile> |
getBundles() |
List<BundleFile> |
getJars() |
List<BundleFile> |
getNestedJars() |
File |
handleBundle(BundleFile bf)
A Bundle was found on the class path.
|
File |
handleJar(BundleFile bf)
A JAR was found on the class path.
|
void |
handleNestedJar(BundleFile bf)
A nested JAR was found on the class path.
|
void |
restore(File file) |
void |
scan(List<File> files,
boolean scanForNestedJARs,
String[] blacklist) |
void |
store(File file) |
protected final List<BundleFile> bundles
protected final List<BundleFile> jars
protected final List<BundleFile> nestedJars
protected final SharedClassLoader loader
protected final File nestedJARsDir
public ClassPath(SharedClassLoader loader, File nestedJARsDir)
public List<BundleFile> getBundles()
public List<BundleFile> getJars()
public List<BundleFile> getNestedJars()
public File handleBundle(BundleFile bf)
ClassPathScanner.Callback
The callback should return a directory to be used to extract nested JARs from this JAR.
The callback may return null to skip nested JAR extraction.
handleBundle
in interface ClassPathScanner.Callback
bf
- the JAR foundpublic File handleJar(BundleFile bf)
ClassPathScanner.Callback
The callback should return a directory to be used to extract nested JARs from this JAR.
The callback may return null to skip nested JAR extraction.
handleJar
in interface ClassPathScanner.Callback
bf
- the JAR foundpublic void handleNestedJar(BundleFile bf)
ClassPathScanner.Callback
The callback should return a directory to be used to extract nested JARs from this JAR.
The callback may return null to skip nested JAR extraction
handleNestedJar
in interface ClassPathScanner.Callback
bf
- the JAR foundpublic void store(File file) throws IOException
IOException
public void restore(File file) throws IOException
IOException
Copyright © 2016 Nuxeo SA. All rights reserved.