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 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 resource
      classLoader - 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 resource
      classLoader - The classloader
      readAttributeValues - 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:
      getResource in interface org.springframework.core.type.classreading.MetadataReader
    • getClassMetadata

      public org.springframework.core.type.ClassMetadata getClassMetadata()
      Specified by:
      getClassMetadata in interface org.springframework.core.type.classreading.MetadataReader
    • getAnnotationMetadata

      public org.springframework.core.type.AnnotationMetadata getAnnotationMetadata()
      Specified by:
      getAnnotationMetadata in interface org.springframework.core.type.classreading.MetadataReader