Package org.grails.asm
Class AnnotationMetadataReader
java.lang.Object
org.grails.asm.AnnotationMetadataReader
- All Implemented Interfaces:
org.springframework.core.type.classreading.MetadataReader
public class AnnotationMetadataReader
extends Object
implements org.springframework.core.type.classreading.MetadataReader
A more limited version of Spring's annotation reader that only reads annotations on classes
- Since:
- 3.1.13
-
Constructor Summary
ConstructorsConstructorDescriptionAnnotationMetadataReader(org.springframework.core.io.Resource resource, ClassLoader classLoader) Reads only the annotation names from a class resourceAnnotationMetadataReader(org.springframework.core.io.Resource resource, ClassLoader classLoader, boolean readAttributeValues) Constructs a new annotation metadata reader -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.core.type.AnnotationMetadataorg.springframework.core.type.ClassMetadataorg.springframework.core.io.Resource
-
Constructor Details
-
AnnotationMetadataReader
public AnnotationMetadataReader(org.springframework.core.io.Resource resource, ClassLoader classLoader) throws IOException Reads only the annotation names from a class resource- Parameters:
resource- The resourceclassLoader- The classloader- Throws:
IOException
-
AnnotationMetadataReader
public AnnotationMetadataReader(org.springframework.core.io.Resource resource, ClassLoader classLoader, boolean readAttributeValues) throws IOException Constructs a new annotation metadata reader- Parameters:
resource- The resourceclassLoader- The classloaderreadAttributeValues- Whether to read the attributes in addition or just the annotation class names- Throws:
IOException
-
-
Method Details
-
getResource
public org.springframework.core.io.Resource getResource()- Specified by:
getResourcein interfaceorg.springframework.core.type.classreading.MetadataReader
-
getClassMetadata
public org.springframework.core.type.ClassMetadata getClassMetadata()- Specified by:
getClassMetadatain interfaceorg.springframework.core.type.classreading.MetadataReader
-
getAnnotationMetadata
public org.springframework.core.type.AnnotationMetadata getAnnotationMetadata()- Specified by:
getAnnotationMetadatain interfaceorg.springframework.core.type.classreading.MetadataReader
-