<div dir="ltr">We had a hangout and came up with the following suggestion. Please let us know what you think and if there is something you are missing.<div><br></div><div><pre style="font-size:12px;line-height:1.4;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;word-wrap:break-word;margin-top:0px;margin-bottom:0px;padding:0px;color:rgb(0,0,0)">
<div class="" id="file-gistfile1-java-LC1" style="padding-top:0px;padding-bottom:0px;padding-left:1em"><span class="">route</span><span class="" style="font-weight:bold">()</span></div></pre><pre style="font-size:12px;line-height:1.4;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;word-wrap:break-word;margin-top:0px;margin-bottom:0px;padding:0px;color:rgb(0,0,0)">
<div class="" id="file-gistfile1-java-LC2" style="padding-top:0px;padding-bottom:0px;padding-left:1em">      <span class="" style="font-weight:bold">.</span><span class="" style="color:rgb(0,128,128)">from</span><span class="" style="font-weight:bold">(</span><span class="" style="color:rgb(221,17,68)">&quot;/cars&quot;</span><span class="" style="font-weight:bold">)</span></div>
</pre><pre style="font-size:12px;line-height:1.4;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;word-wrap:break-word;margin-top:0px;margin-bottom:0px;padding:0px;color:rgb(0,0,0)"><div class="" id="file-gistfile1-java-LC3" style="padding-top:0px;padding-bottom:0px;padding-left:1em">
      <span class="" style="font-weight:bold">.</span><span class="" style="color:rgb(0,128,128)">on</span><span class="" style="font-weight:bold">(</span><span class="">RequestMethod</span><span class="" style="font-weight:bold">.</span><span class="" style="color:rgb(0,128,128)">GET</span><span class="" style="font-weight:bold">)</span></div>
</pre><pre style="font-size:12px;line-height:1.4;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;word-wrap:break-word;margin-top:0px;margin-bottom:0px;padding:0px;color:rgb(0,0,0)"><div class="" id="file-gistfile1-java-LC4" style="padding-top:0px;padding-bottom:0px;padding-left:1em">
      <span class="" style="font-weight:bold">.</span><span class="" style="color:rgb(0,128,128)">produces</span><span class="" style="font-weight:bold">(</span><span class="">MediaType</span><span class="" style="font-weight:bold">.</span><span class="" style="color:rgb(0,128,128)">JSON</span><span class="" style="font-weight:bold">)</span></div>
</pre><pre style="font-size:12px;line-height:1.4;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;word-wrap:break-word;margin-top:0px;margin-bottom:0px;padding:0px;color:rgb(0,0,0)"><div class="" id="file-gistfile1-java-LC5" style="padding-top:0px;padding-bottom:0px;padding-left:1em">
      <span class="" style="font-weight:bold">.</span><span class="" style="color:rgb(0,128,128)">to</span><span class="" style="font-weight:bold">(</span><span class="">Cars</span><span class="" style="font-weight:bold">.</span><span class="" style="color:rgb(0,128,128)">class</span><span class="" style="font-weight:bold">).</span><span class="" style="color:rgb(0,128,128)">findCarsBy</span><span class="" style="font-weight:bold">(</span><span class="">param</span><span class="" style="font-weight:bold">(</span><span class="">PaginationInfo</span><span class="" style="font-weight:bold">.</span><span class="" style="color:rgb(0,128,128)">class</span><span class="" style="font-weight:bold">),</span> <span class="">param</span><span class="" style="font-weight:bold">(</span><span class="" style="color:rgb(221,17,68)">&quot;color&quot;</span><span class="" style="font-weight:bold">));</span></div>
</pre></div><div><br></div><div><br></div><div><pre style="font-size:12px;line-height:1.4;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;word-wrap:break-word;margin-top:0px;margin-bottom:0px;padding:0px;color:rgb(0,0,0)">
<div class="" id="file-gistfile2-java-LC1" style="padding-top:0px;padding-bottom:0px;padding-left:1em"><span class="">@Paginated</span> </div></pre><pre style="font-size:12px;line-height:1.4;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;word-wrap:break-word;margin-top:0px;margin-bottom:0px;padding:0px;color:rgb(0,0,0)">
<div class="" id="file-gistfile2-java-LC2" style="padding-top:0px;padding-bottom:0px;padding-left:1em"><span class="" style="font-weight:bold">public</span> <span class="">List</span><span class="" style="font-weight:bold">&lt;</span><span class="">Car</span><span class="" style="font-weight:bold">&gt;</span> <span class="" style="color:rgb(153,0,0);font-weight:bold">findCarsBy</span><span class="" style="font-weight:bold">(</span><span class="" style="font-weight:bold">final</span> <span class="">PaginationInfo</span> <span class="">paginationInfo</span><span class="" style="font-weight:bold">,</span> <span class="" style="font-weight:bold">final</span> <span class="">String</span> <span class="">color</span><span class="" style="font-weight:bold">)</span> <span class="" style="font-weight:bold">{</span></div>
</pre><pre style="font-size:12px;line-height:1.4;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;word-wrap:break-word;margin-top:0px;margin-bottom:0px;padding:0px;color:rgb(0,0,0)"><div class="" id="file-gistfile2-java-LC3" style="padding-top:0px;padding-bottom:0px;padding-left:1em">
    <span class="" style="font-weight:bold">return</span> <span class="" style="color:rgb(153,0,0);font-weight:bold">getCars</span><span class="" style="font-weight:bold">(</span><span class="">paginationInfo</span><span class="" style="font-weight:bold">.</span><span class="" style="color:rgb(0,128,128)">getOffset</span><span class="" style="font-weight:bold">(),</span> <span class="">color</span><span class="" style="font-weight:bold">,</span> <span class="">paginationInfo</span><span class="" style="font-weight:bold">.</span><span class="" style="color:rgb(0,128,128)">getLimit</span><span class="" style="font-weight:bold">());</span></div>
</pre><pre style="font-size:12px;line-height:1.4;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;word-wrap:break-word;margin-top:0px;margin-bottom:0px;padding:0px;color:rgb(0,0,0)"><div class="" id="file-gistfile2-java-LC4" style="padding-top:0px;padding-bottom:0px;padding-left:1em">
<span class="" style="font-weight:bold">}</span></div></pre></div><div><br></div><div><br></div><div><pre style="font-size:12px;line-height:1.4;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;word-wrap:break-word;margin-top:0px;margin-bottom:0px;padding:0px;color:rgb(0,0,0)">
<div class="" id="file-gistfile3-java-LC1" style="padding-top:0px;padding-bottom:0px;padding-left:1em"><span class="">@Qualifier</span></div></pre><pre style="font-size:12px;line-height:1.4;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;word-wrap:break-word;margin-top:0px;margin-bottom:0px;padding:0px;color:rgb(0,0,0)">
<div class="" id="file-gistfile3-java-LC2" style="padding-top:0px;padding-bottom:0px;padding-left:1em"><span class="">@Documented</span></div></pre><pre style="font-size:12px;line-height:1.4;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;word-wrap:break-word;margin-top:0px;margin-bottom:0px;padding:0px;color:rgb(0,0,0)">
<div class="" id="file-gistfile3-java-LC3" style="padding-top:0px;padding-bottom:0px;padding-left:1em"><span class="">@Retention</span><span class="" style="font-weight:bold">(</span><span class="">RetentionPolicy</span><span class="" style="font-weight:bold">.</span><span class="" style="color:rgb(0,128,128)">RUNTIME</span><span class="" style="font-weight:bold">)</span></div>
</pre><pre style="font-size:12px;line-height:1.4;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;word-wrap:break-word;margin-top:0px;margin-bottom:0px;padding:0px;color:rgb(0,0,0)"><div class="" id="file-gistfile3-java-LC4" style="padding-top:0px;padding-bottom:0px;padding-left:1em">
<span class="">@Target</span><span class="" style="font-weight:bold">({</span><span class="">ElementType</span><span class="" style="font-weight:bold">.</span><span class="" style="color:rgb(0,128,128)">METHOD</span><span class="" style="font-weight:bold">,</span> <span class="">ElementType</span><span class="" style="font-weight:bold">.</span><span class="" style="color:rgb(0,128,128)">TYPE</span><span class="" style="font-weight:bold">})</span></div>
</pre><pre style="font-size:12px;line-height:1.4;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;word-wrap:break-word;margin-top:0px;margin-bottom:0px;padding:0px;color:rgb(0,0,0)"><div class="" id="file-gistfile3-java-LC5" style="padding-top:0px;padding-bottom:0px;padding-left:1em">
<span class="" style="font-weight:bold">public</span> <span class="">@interface</span> <span class="">Paginated</span> <span class="" style="font-weight:bold">{</span></div></pre><pre style="font-size:12px;line-height:1.4;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;word-wrap:break-word;margin-top:0px;margin-bottom:0px;padding:0px;color:rgb(0,0,0)">
<div class="" id="file-gistfile3-java-LC6" style="padding-top:0px;padding-bottom:0px;padding-left:1em">    </div></pre><pre style="font-size:12px;line-height:1.4;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;word-wrap:break-word;margin-top:0px;margin-bottom:0px;padding:0px;color:rgb(0,0,0)">
<div class="" id="file-gistfile3-java-LC7" style="padding-top:0px;padding-bottom:0px;padding-left:1em">    <span class="">String</span> <span class="" style="color:rgb(153,0,0);font-weight:bold">offsetParamName</span><span class="" style="font-weight:bold">()</span> <span class="" style="font-weight:bold">default</span> <span class="" style="color:rgb(221,17,68)">&quot;offset&quot;</span><span class="" style="font-weight:bold">;</span></div>
</pre><pre style="font-size:12px;line-height:1.4;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;word-wrap:break-word;margin-top:0px;margin-bottom:0px;padding:0px;color:rgb(0,0,0)"><div class="" id="file-gistfile3-java-LC8" style="padding-top:0px;padding-bottom:0px;padding-left:1em">
    <span class="" style="color:rgb(68,85,136);font-weight:bold">int</span> <span class="">defaultOffsetValue</span> <span class="" style="font-weight:bold">default</span> <span class="" style="color:rgb(0,153,153)">0</span><span class="" style="font-weight:bold">;</span></div>
</pre><pre style="font-size:12px;line-height:1.4;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;word-wrap:break-word;margin-top:0px;margin-bottom:0px;padding:0px;color:rgb(0,0,0)"><div class="" id="file-gistfile3-java-LC9" style="padding-top:0px;padding-bottom:0px;padding-left:1em">
    </div></pre><pre style="font-size:12px;line-height:1.4;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;word-wrap:break-word;margin-top:0px;margin-bottom:0px;padding:0px;color:rgb(0,0,0)"><div class="" id="file-gistfile3-java-LC10" style="padding-top:0px;padding-bottom:0px;padding-left:1em">
    <span class="">String</span> <span class="" style="color:rgb(153,0,0);font-weight:bold">limitParamName</span><span class="" style="font-weight:bold">()</span> <span class="" style="font-weight:bold">default</span> <span class="" style="color:rgb(221,17,68)">&quot;limit&quot;</span><span class="" style="font-weight:bold">;</span></div>
</pre><pre style="font-size:12px;line-height:1.4;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;word-wrap:break-word;margin-top:0px;margin-bottom:0px;padding:0px;color:rgb(0,0,0)"><div class="" id="file-gistfile3-java-LC11" style="padding-top:0px;padding-bottom:0px;padding-left:1em">
    <span class="" style="color:rgb(68,85,136);font-weight:bold">int</span> <span class="">defaultLimitValue</span> <span class="" style="font-weight:bold">default</span> <span class="" style="color:rgb(0,153,153)">0</span><span class="" style="font-weight:bold">;</span></div>
</pre><pre style="font-size:12px;line-height:1.4;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;word-wrap:break-word;margin-top:0px;margin-bottom:0px;padding:0px;color:rgb(0,0,0)"><div class="" id="file-gistfile3-java-LC12" style="padding-top:0px;padding-bottom:0px;padding-left:1em">
 </div></pre><pre style="font-size:12px;line-height:1.4;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;word-wrap:break-word;margin-top:0px;margin-bottom:0px;padding:0px;color:rgb(0,0,0)"><div class="" id="file-gistfile3-java-LC13" style="padding-top:0px;padding-bottom:0px;padding-left:1em">
    <span class="">String</span> <span class="" style="color:rgb(153,0,0);font-weight:bold">customHeadersPrefix</span><span class="" style="font-weight:bold">()</span> <span class="" style="font-weight:bold">default</span> <span class="" style="color:rgb(221,17,68)">&quot;AG-&quot;</span><span class="" style="font-weight:bold">;</span></div>
</pre><pre style="font-size:12px;line-height:1.4;font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;word-wrap:break-word;margin-top:0px;margin-bottom:0px;padding:0px;color:rgb(0,0,0)"><div class="" id="file-gistfile3-java-LC14" style="padding-top:0px;padding-bottom:0px;padding-left:1em">
<span class="" style="font-weight:bold">}</span></div><div class="" id="file-gistfile3-java-LC14" style="padding-top:0px;padding-bottom:0px;padding-left:1em"><br></div><div class="" id="file-gistfile3-java-LC14" style="padding-top:0px;padding-bottom:0px;padding-left:1em">
<br></div></pre></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 22 January 2013 14:38, Daniel Bevenius <span dir="ltr">&lt;<a href="mailto:daniel.bevenius@gmail.com" target="_blank">daniel.bevenius@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>+1 For keeping this on the Route configuration for M8. We can certainly change things later, I just feel that time is starting to run out, and I&#39;d also need to add and test the Web Linking support. </div>

</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On 22 January 2013 14:22, Sebastien Blanc <span dir="ltr">&lt;<a href="mailto:scm.blanc@gmail.com" target="_blank">scm.blanc@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">+1<div><div><br><br><div class="gmail_quote">On Tue, Jan 22, 2013 at 2:22 PM, Douglas Campos <span dir="ltr">&lt;<a href="mailto:qmx@qmx.me" target="_blank">qmx@qmx.me</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>On Tue, Jan 22, 2013 at 11:09:56AM -0200, Bruno Oliveira wrote:<br>
&gt; I&#39;m +1 for annotations or include it on Routes configuration.<br>
</div>Since pagination != routing, annotation seems less intrusive, and<br>
there&#39;s the bonus point you can specify the limit/offset parameter names<br>
on that annotation.<br>
<div><div><br>
-- qmx<br>
_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
</div></div></blockquote></div><br>
</div></div><br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>