|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.common.scan.ClasspathScannerFactory
public class ClasspathScannerFactory
Creates ClasspathScanners for given URLs.
| Constructor Summary | |
|---|---|
ClasspathScannerFactory()
|
|
| Method Summary | |
|---|---|
static ClasspathScanner |
scanner()
Returns a ClasspathScanner defined over all the URLs visible to the context classloader and its parents, up to the application
classloader. |
static ClasspathScanner |
scanner(Collection<URL> urls)
Returns a ClasspathScanner defined over a given collection of URLs. |
static void |
setScanner(ClasspathScanner scanner)
Sets the scanner to return from scanner() and scanner(Collection) for testing purposes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClasspathScannerFactory()
| Method Detail |
|---|
public static ClasspathScanner scanner()
ClasspathScanner defined over all the URLs visible to the context classloader and its parents, up to the application
classloader.
public static ClasspathScanner scanner(Collection<URL> urls)
ClasspathScanner defined over a given collection of URLs.
the - URLs
public static void setScanner(ClasspathScanner scanner)
scanner() and scanner(Collection) for testing purposes.
scanner - the scanner
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||