Used to scan for classes on the classpath in the most efficient manner possible. WARNING: Classpath scanning can be expensive! Use with care.
| Constructor and description |
|---|
ClassPathScanner
() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected java.util.List |
ignoredRootPackages()
|
|
protected boolean |
isExcluded(Resource res)Whether the given resource is excluded
|
|
Set |
scan(java.lang.Class applicationClass)Scans for classes relative to the given class
|
|
Set |
scan(java.lang.Class applicationClass, java.lang.Class annotationFilter)Scans for classes relative to the given class
|
|
Set |
scan(java.lang.Class applicationClass, Closure annotationFilter)Scans for classes relative to the given class
|
|
Set |
scan(java.lang.Class applicationClass, Collection packageNames, java.lang.Class annotationFilter)Scans for classes relative to the given class
|
|
Set |
scan(java.lang.Class applicationClass, Collection packageNames, Closure annotationFilter)Scans for classes relative to the given class
|
|
Set |
scan(ResourcePatternResolver resourcePatternResolver, Collection packageNames, Closure annotationFilter)Scans for classes in the given package names
|
|
Set |
scan(java.lang.ClassLoader classLoader, ResourcePatternResolver resourcePatternResolver, Collection packageNames, Closure annotationFilter)Scans for classes in the given package names
|
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Whether the given resource is excluded
res - The resourceScans for classes relative to the given class
applicationClass - The class, usually the Application classScans for classes relative to the given class
applicationClass - The class, usually the Application classannotationFilter - The annotation to filter byScans for classes relative to the given class
applicationClass - The class, usually the Application classannotationFilter - The annotation to filter byScans for classes relative to the given class
applicationClass - The class, usually the Application classpackageNames - The package names to scanannotationFilter - The annotation to filter byScans for classes relative to the given class
applicationClass - The class, usually the Application classpackageNames - The package names to scanScans for classes in the given package names
resourcePatternResolver - The resolver to usepackageNames - The package namesScans for classes in the given package names
classLoader - The classloader to use to load classesresourcePatternResolver - The resolverpackageNames - The package namesannotationFilter - The filter