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
  • Field Details

    • ANNOTATION_DEFAULT_VALUES_PROVIDER

      public static final AnnotationDefaultValuesProvider ANNOTATION_DEFAULT_VALUES_PROVIDER
      The annotation default values provider.
      Since:
      4.3.0
  • 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
    • getCoreRepeatableAnnotationsContainers

      @Internal public static Map<String,String> getCoreRepeatableAnnotationsContainers()
      Returns:
      The core repeatable annotations.
      Since:
      4.3.0
    • getCoreAnnotationDefaults

      @Internal public static Map<String,Map<CharSequence,Object>> getCoreAnnotationDefaults()
      Returns:
      The core annotation defaults.
      Since:
      4.3.0
    • 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