Package org.simpleframework.xml.convert
Interface Scanner
-
- All Known Implementing Classes:
ScannerBuilder.Entry
interface Scanner
TheScanner
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends java.lang.annotation.Annotation>
Tscan(java.lang.Class<T> type)
This method will scan a class for the specified annotation.
-
-
-
Method Detail
-
scan
<T extends java.lang.annotation.Annotation> T scan(java.lang.Class<T> type)
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
-
-