Interface ElementAnnotationMetadataFactory

All Known Implementing Classes:
AbstractElementAnnotationMetadataFactory, GroovyElementAnnotationMetadataFactory, JavaElementAnnotationMetadataFactory

public interface ElementAnnotationMetadataFactory
Element's annotation metadata factory.
Since:
4.0.0
Author:
Denis Stepanov
  • Method Details

    • build

      Build new element annotation metadata from the element.
      Parameters:
      element - The element
      Returns:
      the element's metadata
    • buildTypeAnnotations

      ElementAnnotationMetadata buildTypeAnnotations(ClassElement element)
      Build new class element type annotation metadata from the class element.
      Parameters:
      element - The element
      Returns:
      the element's metadata
    • buildGenericTypeAnnotations

      ElementAnnotationMetadata buildGenericTypeAnnotations(GenericElement element)
      Build new generic element type annotation metadata from the class element.
      Parameters:
      element - The element
      Returns:
      the element's metadata
    • buildMutable

      ElementAnnotationMetadata buildMutable(AnnotationMetadata annotationMetadata)
      Build new mutable element annotation metadata.
      Parameters:
      annotationMetadata - The preloaded annotation
      Returns:
      the element's metadata
    • readOnly

      Makes this factory read-only. No modification to the annotation metadata should be persisted into the shared cache.
      Returns:
      read-only factory