Package org.simpleframework.xml.convert
Interface Scanner
- All Known Implementing Classes:
ScannerBuilder.Entry
interface Scanner
The
Scanner
interface is used to scan a class for a
given annotation. A scanner will cache all previous lookups to
ensure the look time is reduced. Caches include misses, so if a
class does not contain an annotation when scanned it will not
be scanned again.-
Method Summary
Modifier and TypeMethodDescription<T extends Annotation>
TThis method will scan a class for the specified annotation.
-
Method Details
-
scan
This method will scan a class for the specified annotation. If the annotation is found on the class, or on one of the super types then it is returned. All scans should be cached to ensure scanning is only performed once.- Parameters:
type
- this is the annotation type to be scanned for- Returns:
- this will return the annotation if it is found
-