Annotation Interface Attribute


@Target(PARAMETER) @Retention(RUNTIME) public @interface Attribute
Annotates a controller method or method parameter for scope attribute binding. Should be used in Controllers and Filters.

Matched type is NOT converted. Any value created by this parameter is persisted to the scope declared. Default is ScopeType.REQUEST. Any value that does not already exist is created (via default constructor or matching annotated method in the same class).

Author:
Matthew Tropiano
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
  • Element Details

    • value

      String value
      Returns:
      the name of the attribute.
    • scope

      ScopeType scope
      Returns:
      the preferred scope to use to search for the matching attribute.
      Default:
      REQUEST