<div>
Agreed with matzew and some suggestions.
</div><div><br></div><div>Try to enforce the chain if the **order** of the method call matters to you, returning 'this' user could call:</div><div><br></div><div><div>Pipe<Bar> barPipe = pipeline.newPipe()</div><div> .withName("bar")</div><div> .useClass(Bar.class)</div><div> .withType(REST)</div><div> .withEnpoint("my-crazy-endpoing")</div><div> .build();</div></div>
<div><div><br></div><div>Or</div><div><br></div><div><div>Pipe<Bar> barPipe = pipeline.newPipe()</div><div> .useClass(Bar.class)</div><div> .withEnpoint("my-crazy-endpoing")</div><div> .withName("bar")</div><div> .withType(REST)</div><div> .build();</div></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></div>
<p style="color: #A0A0A8;">On Monday, October 29, 2012 at 10:18 AM, Matthias Wessendorf wrote:</p>
<blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
<span><div><div><div>Look great!</div><div><br></div><div>minor things:</div><div><br></div><div>* newPipe() ==> pipe();</div><div>* withFoo(arg) ==> foo(arg);</div><div><br></div><div><br></div><div>-M</div><div><br></div><div>On Mon, Oct 29, 2012 at 1:16 PM, Daniel Passos <<a href="mailto:daniel@passos.me">daniel@passos.me</a>> wrote:</div><blockquote type="cite"><div><div>Hey Guys,</div><div><br></div><div>What do you think about draft of Pipe Builder? =></div><div><a href="https://gist.github.com/3973193">https://gist.github.com/3973193</a></div><div><br></div><div>--</div><div>Daniel Passos</div><div><br></div><div><br></div><div>_______________________________________________</div><div>aerogear-dev mailing list</div><div><a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a></div><div><a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></div></div></blockquote><div><br></div><div><br></div><div><br></div><div>-- </div><div>Matthias Wessendorf</div><div><br></div><div>blog: <a href="http://matthiaswessendorf.wordpress.com">http://matthiaswessendorf.wordpress.com</a>/</div><div>sessions: <a href="http://www.slideshare.net/mwessendorf">http://www.slideshare.net/mwessendorf</a></div><div>twitter: <a href="http://twitter.com/mwessendorf">http://twitter.com/mwessendorf</a></div><div>_______________________________________________</div><div>aerogear-dev mailing list</div><div><a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a></div><div><a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></div></div></div></span>
</blockquote>
<div>
<br>
</div>