public class ClassPathScanner extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
ClassPathScanner.Callback |
Modifier and Type | Field and Description |
---|---|
protected String[] |
blackList
If set points to a set of path prefixes to be excluded form bundle processing
|
protected ClassPathScanner.Callback |
callback |
protected boolean |
scanForNestedJARs |
Constructor and Description |
---|
ClassPathScanner(ClassPathScanner.Callback callback) |
ClassPathScanner(ClassPathScanner.Callback callback,
boolean scanForNestedJars,
String[] blackList) |
Modifier and Type | Method and Description |
---|---|
Collection<BundleFile> |
extractNestedJars(BundleFile bf,
File nestedBundlesDir) |
void |
scan(File file) |
void |
scan(List<File> classPath)
FIXME: this javadoc is not correct.
|
void |
setScanForNestedJARs(boolean scanForNestedJars) |
protected boolean scanForNestedJARs
protected final ClassPathScanner.Callback callback
public ClassPathScanner(ClassPathScanner.Callback callback)
public ClassPathScanner(ClassPathScanner.Callback callback, boolean scanForNestedJars, String[] blackList)
public void setScanForNestedJARs(boolean scanForNestedJars)
public void scan(List<File> classPath)
Scans the given class path and put found OSGi bundles in bundles, regular JARs in jars and append any nested jar or bundle into the given class loader.
classPath
- public Collection<BundleFile> extractNestedJars(BundleFile bf, File nestedBundlesDir) throws IOException
IOException
Copyright © 2016 Nuxeo SA. All rights reserved.