Package org.ocpsoft.rewrite.annotation
Annotation Type 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
-
Element Details
-
value
String valueThe name of the parameter. If the attribute is not set, the name of the annotated field is used.- Default:
- ""
-