Annotation Type Extension



  • @Target({FIELD,METHOD,PARAMETER,TYPE})
    @Retention(RUNTIME)
    @Repeatable(Extensions.class)
    public @interface Extension
    An optionally named list of extension properties.
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.String name
      An option name for these extensions.
      java.lang.String value
      The extension value.
    • Element Detail

      • name

        java.lang.String name
        An option name for these extensions.
        Returns:
        an option name for these extensions - will be prefixed with "x-"
      • value

        java.lang.String value
        The extension value. If the value allows parsing into an object or array, it should be converted from a string
        Returns:
        the actual extension value