public class ClassPathAnnotationScanner extends Object
| Constructor and Description |
|---|
ClassPathAnnotationScanner(String annotation,
Scanner scanner)
Create scanner for the annotation.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
hasAnnotation(ClassFile cf)
Check if the file contains annotation.
|
List<String> |
scanPlugins(ClassLoader classLoader,
String path)
Run the scan - search path for files containing annotation.
|
public List<String> scanPlugins(ClassLoader classLoader, String path) throws IOException
classLoader - classloader to resolve pathpath - path to scan Scanner.scan(ClassLoader, String, ScannerVisitor)IOException - scan exception.protected boolean hasAnnotation(ClassFile cf) throws IOException
IOExceptionCopyright © 2018. All rights reserved.