ClasspathScanner allows to scan the classpath for classes and
resources.
An implementation of this interface can be registered via the
ServiceLoader mechanism.
| Modifier and Type | Method and Description |
|---|---|
| public List | Returns: a list of all such classes found; nevernull
but potentially emptythe URI for the classpath root in which to scan; never
root, ClassFilter nullthe class type filter; never classFilter)nullFind all classes in the supplied classpath |
| public List | Returns: a list of all such classes found; nevernull
but potentially emptythe name of the base package in which to start
scanning; must not be basePackageName, ClassFilter null and must be valid in terms of Java
syntaxthe class type filter; never classFilter)nullFind all classes in the supplied classpath |
| public default List | Returns: a list of all such resources found; nevernull
but potentially emptythe URI for the classpath root in which to scan; never
root, Predicate<Resource> nullthe resource type filter; never resourceFilter)null
Deprecated
for removal since 1.14. Please implement
scanForResourcesInClasspathRoot(URI, ResourceFilter) instead
Find all resources in the supplied classpath |
| public default List | Returns: a list of all such resources found; nevernull
but potentially emptythe URI for the classpath root in which to scan; never
root, ResourceFilter nullthe resource type filter; never resourceFilter)nullFind all resources in the supplied classpath |
| public default List | Returns: a list of all such resources found; nevernull
but potentially emptythe name of the base package in which to start
scanning; must not be basePackageName, Predicate<Resource> null and must be valid in terms of Java
syntaxthe resource type filter; never resourceFilter)null
Deprecated
for removal since 1.14. Please implement
scanForResourcesInPackage(String, ResourceFilter) instead
Find all resources in the supplied classpath |
| public default List | Returns: a list of all such resources found; nevernull
but potentially emptythe name of the base package in which to start
scanning; must not be basePackageName, ResourceFilter null and must be valid in terms of Java
syntaxthe resource type filter; never resourceFilter)nullFind all resources in the supplied classpath |
| scanForClassesInClasspathRoot | back to summary |
|---|---|
| public List Find all classes in the supplied classpath The classpath scanning algorithm searches recursively in subpackages beginning with the root of the classpath.
| |
| scanForClassesInPackage | back to summary |
|---|---|
| public List Find all classes in the supplied classpath The classpath scanning algorithm searches recursively in subpackages beginning with the root of the classpath.
| |
| scanForResourcesInClasspathRoot | back to summary |
|---|---|
| public default List Deprecated for removal since 1.14. Please implement
Find all resources in the supplied classpath The classpath scanning algorithm searches recursively in subpackages beginning with the root of the classpath.
| |
| scanForResourcesInClasspathRoot | back to summary |
|---|---|
| public default List Find all resources in the supplied classpath The classpath scanning algorithm searches recursively in subpackages beginning with the root of the classpath.
| |
| scanForResourcesInPackage | back to summary |
|---|---|
| public default List Deprecated for removal since 1.14. Please implement
Find all resources in the supplied classpath The classpath scanning algorithm searches recursively in subpackages beginning with the root of the classpath.
| |
| scanForResourcesInPackage | back to summary |
|---|---|
| public default List Find all resources in the supplied classpath The classpath scanning algorithm searches recursively in subpackages beginning with the root of the classpath.
| |