public final class AnnotationPackageScanner
extends java.lang.Object
Constructor and Description |
---|
AnnotationPackageScanner() |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
scanForClassAnnotations(java.lang.Class<? extends java.lang.annotation.Annotation>[] annotationsToSearch,
java.lang.String packageToScan)
The method will scan packages searching for classes that have the needed annotations.
|
public java.util.List<java.lang.String> scanForClassAnnotations(java.lang.Class<? extends java.lang.annotation.Annotation>[] annotationsToSearch, java.lang.String packageToScan)
annotationsToSearch
- The annotations we need.packageToScan
- The packages to scan from, note that all sub packages will be scanned too.