public class URLPackageScanner extends Object
URLClassLoader
This class used to be imported from Shrinkwrap and used in the TCK. As it is an internal API, it is subject to change so we internalized it as part of BVTCK-192.
| Modifier and Type | Class and Description |
|---|---|
static interface |
URLPackageScanner.Callback
Callback interface for found classes.
|
| Modifier and Type | Method and Description |
|---|---|
static URLPackageScanner |
newInstance(boolean addRecursively,
ClassLoader classLoader,
URLPackageScanner.Callback callback)
Factory method to create an instance of URLPackageScanner in the default package
|
static URLPackageScanner |
newInstance(boolean addRecursively,
ClassLoader classLoader,
URLPackageScanner.Callback callback,
String packageName)
Factory method to create an instance of URLPackageScanner.
|
void |
scanPackage() |
public static URLPackageScanner newInstance(boolean addRecursively, ClassLoader classLoader, URLPackageScanner.Callback callback, String packageName)
addRecursively - flag to add child packagesclassLoader - class loader that will have classes addedpackageName - Package that will be scannedcallback - a callbackpublic static URLPackageScanner newInstance(boolean addRecursively, ClassLoader classLoader, URLPackageScanner.Callback callback)
addRecursively - flag to add child packagesclassLoader - class loader that will have classes addedcallback - a callbackpublic void scanPackage()
Copyright © 2008–2019 Eclipse Foundation. All rights reserved.