Annotation Interface Extensions


@Retention(SOURCE) @Target(ANNOTATION_TYPE) public @interface Extensions
Container annotation for repeating Extension annotations.

This annotation is used internally by the Java compiler to support multiple Extension declarations on a single element. It is not intended for direct use in application code.

Instead of using this annotation directly, developers should declare multiple @Extension annotations using Java's Repeatable syntax. The compiler automatically wraps them in this container.

Example usage:


 @Function(
     name = "myFunc",
     extensions = {
         @Extension(
             name = ExtensionKeys.Aws.Architecture.KEY,
             value = ExtensionKeys.Aws.Architecture.Values.ARM64)
     }
 )
 
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The array of Extension annotations grouped together.
  • Element Details

    • value

      Extension[] value
      The array of Extension annotations grouped together.
      Returns:
      the extension annotations