Package org.jboss.cdi.tck.shrinkwrap
Class URLPackageScanner
- java.lang.Object
-
- org.jboss.cdi.tck.shrinkwrap.URLPackageScanner
-
public class URLPackageScanner extends Object
Taken from the ShrinkWrap impl. Implementation of scanner which can scan aURLClassLoader- Author:
- Thomas Heute, Gavin King, Norman Richards, Pete Muir, Aslak Knutsen
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceURLPackageScanner.CallbackCallback interface for found classes.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static URLPackageScannernewInstance(boolean addRecursively, ClassLoader classLoader, URLPackageScanner.Callback callback)Factory method to create an instance of URLPackageScanner in the default packagestatic URLPackageScannernewInstance(boolean addRecursively, ClassLoader classLoader, URLPackageScanner.Callback callback, String packageName)Factory method to create an instance of URLPackageScanner.voidscanPackage()
-
-
-
Method Detail
-
newInstance
public static URLPackageScanner newInstance(boolean addRecursively, ClassLoader classLoader, URLPackageScanner.Callback callback, String packageName)
Factory method to create an instance of URLPackageScanner.- Parameters:
addRecursively- flag to add child packagesclassLoader- class loader that will have classes addedpkg- Package that will be scanned- Returns:
- new instance of URLPackageScanner
-
newInstance
public static URLPackageScanner newInstance(boolean addRecursively, ClassLoader classLoader, URLPackageScanner.Callback callback)
Factory method to create an instance of URLPackageScanner in the default package- Parameters:
pkg- Package that will be scannedaddRecursively- flag to add child packagesclassLoader- class loader that will have classes added- Returns:
- new instance of URLPackageScanner
-
scanPackage
public void scanPackage()
-
-