public class AnnotationMetadataReader extends java.lang.Object implements org.springframework.core.type.classreading.MetadataReader
A more limited version of Spring's annotation reader that only reads annotations on classes
Constructor and description |
---|
AnnotationMetadataReader
(org.springframework.core.io.Resource resource, java.lang.ClassLoader classLoader) Reads only the annotation names from a class resource |
AnnotationMetadataReader
(org.springframework.core.io.Resource resource, java.lang.ClassLoader classLoader, boolean readAttributeValues) Constructs a new annotation metadata reader |
Type Params | Return Type | Name and description |
---|---|---|
|
public org.springframework.core.type.AnnotationMetadata |
getAnnotationMetadata() |
|
public org.springframework.core.type.ClassMetadata |
getClassMetadata() |
|
public org.springframework.core.io.Resource |
getResource() |
|
public org.springframework.asm.AnnotationVisitor |
visitAnnotation(java.lang.String desc, boolean visible) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
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