public class ClassPath extends Object implements ClassPathScanner.Callback
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) |
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 © 2015 Nuxeo SA. All rights reserved.