|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Target(value=PARAMETER) @Documented public @interface RequestParameters
Marks a event argument to receive all parameters of a request. For example, given a class:
public class Model { private Integer id; private String name; }And Event:
public Resolution sync(@RequestParameters Model model) { }Any id or name parameters will be directly injected into model. Note that if this annotation is used, all parameters from the request must be injected into the annotated object, and if it is not possible the request will fail. This annotation is specially useful when injecting application/json requests (such as the case of backbone.js applications)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |