Issue Type: Task Task
Affects Versions: 1.0.0.M8
Assignee: Bruno Oliveira
Components: controller
Created: 22/Jan/13 9:22 AM
Description:

The following description was given in the dev-list thread (see "Forum Reference):

So what about injecting pagination info via CDI?
This means that we'll need to use instance variables on the Controller class, and decorate it during instantiation. The paging support could be enabled by using an annotation on the controller method (@Paginated), and the CDI extension would take care of wrapping the response/putting the headers accordingly.

public class Cars {

  private PaginationInfo paginationInfo;

  @Paginated
  public List<Car> list() {
      // fetch offset/limit from this.paginationInfo
  }
}

The response would be decorated with the appropriate links.

Fix Versions: 1.0.0.M8, F2F.2013
Project: AeroGear
Priority: Major Major
Reporter: Daniel Bevenius
Security Level: Public (Everyone can see)
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira