Class AnnotationMetadataSupport

java.lang.Object
io.micronaut.inject.annotation.AnnotationMetadataSupport

@Internal public final class AnnotationMetadataSupport extends Object
Support method for AnnotationMetadata.
Since:
1.0
Author:
Graeme Rocher
  • Constructor Details

    • AnnotationMetadataSupport

      public AnnotationMetadataSupport()
  • Method Details

    • getCoreRepeatableAnnotations

      @Internal public static List<Map.Entry<Class<? extends Annotation>,Class<? extends Annotation>>> getCoreRepeatableAnnotations()
      Returns:
      core repeatable annotations
    • getDefaultValues

      @NonNull public static @NonNull Map<CharSequence,Object> getDefaultValues(String annotation)
      Parameters:
      annotation - The annotation
      Returns:
      The default values for the annotation
    • getDefaultValuesOrNull

      @Nullable public static @Nullable Map<CharSequence,Object> getDefaultValuesOrNull(String annotation)
      Parameters:
      annotation - The annotation
      Returns:
      The default values for the annotation
    • getRepeatableAnnotation

      @Internal public static String getRepeatableAnnotation(String annotation)
      Parameters:
      annotation - The annotation
      Returns:
      The repeatable annotation container.
    • buildAnnotation

      @Internal public static <T extends Annotation> T buildAnnotation(Class<T> annotationClass, @Nullable @Nullable AnnotationValue<T> annotationValue)
      Builds the annotation based on the annotation value.
      Type Parameters:
      T - The type
      Parameters:
      annotationClass - The annotation class
      annotationValue - The annotation value
      Returns:
      The annotation