Annotation Type Parameter


@Inherited @Documented @Target(FIELD) @Retention(RUNTIME) public @interface Parameter
Registers a Binding for a parameter. This annotation can be used to bind a parameter to a bean property.
 @Join(path = "/user/{id}", to = "/user-details.html")
 public class MyClass {
 
   @Parameter
   private String id;
 
 }
 
Please note that you have to specify the parameter name manually if it differs from the field name.
 @Join(path = "/user/{id}", to = "/user-details.html")
 public class MyClass {
 
   @Parameter("id")
   private String userId;
 
 }
 
Author:
Christian Kaltepoth
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The name of the parameter.
  • Element Details

    • value

      String value
      The name of the parameter. If the attribute is not set, the name of the annotated field is used.
      Default:
      ""