+1 to <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">pipeline.add(Project.class)</span><br><br><div class="gmail_quote">On Thu, Nov 1, 2012 at 9:03 AM, Bruno Oliveira <span dir="ltr"><<a href="mailto:bruno@abstractj.org" target="_blank">bruno@abstractj.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
Good morning everyone! Lay out your costumes from halloween and let's talk about this jira (<a href="https://issues.jboss.org/browse/AEROGEAR-593" target="_blank">https://issues.jboss.org/browse/AEROGEAR-593</a>).</div>
<div><br></div><div>Passos did a great work creating a builder for Pipes and of course we can improve it more and more, it's all about software. Currently to create a Pipe we must do it:</div><div><br></div><div><div>
Pipeline pipeline = new Pipeline(ROOT_URL);</div><div>pipeline.pipe().name("tasks").useClass(Task.class).buildAndAdd();</div><div>pipeline.pipe().name("tags").useClass(Tag.class).buildAndAdd();</div></div>
<div><br></div><div>Chatting with Matthias we agreed that would be better 2 alternatives:</div><div><br></div><div><div>Pipeline pipeline = new Pipeline(ROOT_URL);</div><div>pipeline.add(Project.class).build();</div></div>
<div><br></div><div>Doing just this implicitly means that the name of the pipe will be "Project" and if you need 'extras':</div><div><br></div><div><div>Pipeline pipeline = new Pipeline(ROOT_URL);</div>
</div><div>pipeline.add(Project.class).endpoint("foo").name("bar").auth(myAuthMod).build();</div>
<div><div><br></div><div>What do you guys think?</div><span class="HOEnZb"><font color="#888888"><div><br></div><div><br></div><div><div>-- </div><div>"The measure of a man is what he does with power" - Plato</div>
<div>-</div><div>@abstractj</div><div>-</div><div>Volenti Nihil Difficile</div></div></font></span></div>
<br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org">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>