public class AnnotationMetadataReader extends Object implements MetadataReader
A more limited version of Spring's annotation reader that only reads annotations on classes
| Constructor and description |
|---|
AnnotationMetadataReader(Resource resource, ClassLoader classLoader)Reads only the annotation names from a class resource |
AnnotationMetadataReader(Resource resource, 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() |
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