Annotation Type Name

Annotation that can be used on method parameters to identify their name.

Can be used in the following locations:

  • On constructor and method arguments when the parameter names are not in the compiled bytecode.

// Identifying bean property names. // The field name can be anything. public class MyBean { public MyBean(@Name("bar") int foo) {} }

See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    The bean property or parameter name.
  • Element Details

    • value

      The bean property or parameter name.
      The annotation value.