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 java.lang.Object implements org.springframework.core.type.classreading.MetadataReaderA more limited version of Spring's annotation reader that only reads annotations on classes- Since:
- 3.1.13
-
-
Constructor Summary
Constructors Constructor Description AnnotationMetadataReader(org.springframework.core.io.Resource resource, java.lang.ClassLoader classLoader)Reads only the annotation names from a class resourceAnnotationMetadataReader(org.springframework.core.io.Resource resource, java.lang.ClassLoader classLoader, boolean readAttributeValues)Constructs a new annotation metadata reader
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.core.type.AnnotationMetadatagetAnnotationMetadata()org.springframework.core.type.ClassMetadatagetClassMetadata()org.springframework.core.io.ResourcegetResource()
-
-
-
Constructor Detail
-
AnnotationMetadataReader
public AnnotationMetadataReader(org.springframework.core.io.Resource resource, java.lang.ClassLoader classLoader) throws java.io.IOExceptionReads only the annotation names from a class resource- Parameters:
resource- The resourceclassLoader- The classloader- Throws:
java.io.IOException
-
AnnotationMetadataReader
public AnnotationMetadataReader(org.springframework.core.io.Resource resource, java.lang.ClassLoader classLoader, boolean readAttributeValues) throws java.io.IOExceptionConstructs 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:
java.io.IOException
-
-
Method Detail
-
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
-
-