Interface | Description |
---|---|
AnnotationRepository |
An annotation repository
|
AnnotationScanner |
An annotation scanner
|
Configuration |
Represents a configuration of the annotation scanner
|
Settings |
Represents the settings for an annotation repository
|
Class | Description |
---|---|
Annotation |
An annotation
|
AnnotationScannerFactory |
An annotation scanner factory
|
Enum | Description |
---|---|
AnnotationType |
The type of an annotation
|
Visibility |
Represents a visibility
|
The goal of the project is to provide an annotation scanning mechanism and present the annotations found in an annotation repository which can be queried.
This project supports different strategies for scanning the class and jar files for annotations. This allows the user of the project to choose the best strategy for their case or just use the default strategy.
The interaction with the project is simple:
AnnotationScanner as = AnnotationScannerFactory.getDefault();
URL[] urls = ...; // URLs to all your JAR files
AnnotationRepository ar = as.scan(urls);
List<Annotation> l = ar.getAnnotation(MyAnnotation.class);
Copyright ? 2009 Red Hat Middleware LLC (http://www.jboss.com/)