| Constructor and Description |
|---|
Scanner(ClassLoader classLoader) |
| Modifier and Type | Method and Description |
|---|---|
List<Class<?>> |
scanForClasses(Location location,
org.avaje.classpath.scanner.ClassFilter predicate)
Scans the classpath for classes under the specified package matching the given predicate.
|
List<Class<?>> |
scanForClasses(String location,
org.avaje.classpath.scanner.ClassFilter predicate)
Scans the classpath for classes under the specified package matching the given predicate.
|
List<org.avaje.classpath.scanner.Resource> |
scanForResources(Location location,
org.avaje.classpath.scanner.ResourceFilter predicate)
Scans this location for resources matching the given predicate.
|
List<org.avaje.classpath.scanner.Resource> |
scanForResources(String location,
org.avaje.classpath.scanner.ResourceFilter predicate)
Scans this location for resources matching the given predicate.
|
public Scanner(ClassLoader classLoader)
public List<org.avaje.classpath.scanner.Resource> scanForResources(Location location, org.avaje.classpath.scanner.ResourceFilter predicate)
The location can have a prefix of filesystem: or classpath: to determine
how to scan. If no prefix is used then classpath scan is the default.
location - The location to start searching. Subdirectories are also searched.predicate - The predicate used to match resource names.public List<org.avaje.classpath.scanner.Resource> scanForResources(String location, org.avaje.classpath.scanner.ResourceFilter predicate)
The location can have a prefix of filesystem: or classpath: to determine
how to scan. If no prefix is used then classpath scan is the default.
scanForResources in interface org.avaje.classpath.scanner.ClassPathScannerlocation - The location to start searching. Subdirectories are also searched.predicate - The predicate used to match resource names.public List<Class<?>> scanForClasses(Location location, org.avaje.classpath.scanner.ClassFilter predicate)
location - The package in the classpath to start scanning. Subpackages are also scanned.predicate - The predicate used to match scanned classes.public List<Class<?>> scanForClasses(String location, org.avaje.classpath.scanner.ClassFilter predicate)
scanForClasses in interface org.avaje.classpath.scanner.ClassPathScannerlocation - The package in the classpath to start scanning. Subpackages are also scanned.predicate - The predicate used to match scanned classes.Copyright © 2018. All rights reserved.