Annotation Interface Variable


@Qualifier @Retention(RUNTIME) @Target(PARAMETER) public @interface Variable
Annotation to mark a method parameter as a variable to be injected. The value can specify the name of the variable; if empty, the parameter name is used.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The name of the variable to inject.
  • Element Details

    • value

      String value
      The name of the variable to inject. If empty, the parameter name is used.
      Returns:
      The name of the variable.
      Default:
      ""