public class AnnotationMetadataReader extends java.lang.Object implements MetadataReader
A more limited version of Spring's annotation reader that only reads annotations on classes
| Constructor and description |
|---|
AnnotationMetadataReader(Resource resource, java.lang.ClassLoader classLoader)Reads only the annotation names from a class resource |
AnnotationMetadataReader(Resource resource, java.lang.ClassLoader classLoader, boolean readAttributeValues)Constructs a new annotation metadata reader |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public AnnotationMetadata |
getAnnotationMetadata() |
|
public ClassMetadata |
getClassMetadata() |
|
public Resource |
getResource() |
|
public AnnotationVisitor |
visitAnnotation(java.lang.String desc, boolean visible) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
Reads only the annotation names from a class resource
resource - The resourceclassLoader - The classloaderConstructs a new annotation metadata reader
resource - The resourceclassLoader - The classloaderreadAttributeValues - Whether to read the attributes in addition or just the annotation class names