<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 16, 2014 at 4:39 PM, Summers Pittman <span dir="ltr">&lt;<a href="mailto:supittma@redhat.com" target="_blank">supittma@redhat.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">We&#39;ve mentioned moving from the factory/producer/headache pattern that<br>

we currently use (Pipeline, etc) to something more fluent and more<br>
maintainable.  See this JIRA : <a href="https://issues.jboss.org/browse/AGDROID-259" target="_blank">https://issues.jboss.org/browse/AGDROID-259</a><br>
<br>
To that end I&#39;ve stubbed out some classes and made a strawman set of<br>
unit tests for Pipeline :<br>
<a href="https://gist.github.com/secondsun/8478a5f0527fc97b2456" target="_blank">https://gist.github.com/secondsun/8478a5f0527fc97b2456</a></blockquote><div><br></div><div><br></div><div>that reads pretty nice! </div><div>
<br></div><div><span class="" style="font-weight:bold;color:rgb(51,51,51);font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:12px;line-height:16.799999237060547px;white-space:pre">.</span><span class="" style="color:teal;font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:12px;line-height:16.799999237060547px;text-align:start;white-space:pre">withUrl</span><span class="" style="font-weight:bold;color:rgb(51,51,51);font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:12px;line-height:16.799999237060547px;white-space:pre">(</span><span class="" style="color:rgb(51,51,51);font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:12px;line-height:16.799999237060547px;white-space:pre;background-color:rgb(255,255,255)">url</span><span class="" style="font-weight:bold;color:rgb(51,51,51);font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:12px;line-height:16.799999237060547px;white-space:pre">).</span><span class="" style="color:teal;font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:12px;line-height:16.799999237060547px;text-align:start;white-space:pre">module</span><span class="" style="font-weight:bold;color:rgb(51,51,51);font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:12px;line-height:16.799999237060547px;white-space:pre">(</span><span class="" style="color:rgb(51,51,51);font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:12px;line-height:16.799999237060547px;white-space:pre;background-color:rgb(255,255,255)">basicModule</span><span class="" style="font-weight:bold;color:rgb(51,51,51);font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:12px;line-height:16.799999237060547px;white-space:pre">).</span><span class="" style="color:teal;font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:12px;line-height:16.799999237060547px;text-align:start;white-space:pre">forClass</span><span class="" style="font-weight:bold;color:rgb(51,51,51);font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:12px;line-height:16.799999237060547px;white-space:pre">(</span><span class="" style="color:rgb(51,51,51);font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:12px;line-height:16.799999237060547px;white-space:pre;background-color:rgb(255,255,255)">Data</span><span class="" style="font-weight:bold;color:rgb(51,51,51);font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:12px;line-height:16.799999237060547px;white-space:pre">.</span><span class="" style="color:teal;font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:12px;line-height:16.799999237060547px;text-align:start;white-space:pre">class</span><span class="" style="font-weight:bold;color:rgb(51,51,51);font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:12px;line-height:16.799999237060547px;white-space:pre">);</span></div>
<div><br></div><div>like it!</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>
<br>
In the comments of some of the tests I&#39;ve added questions for the<br>
implementation portion of Registrations.<br>
<br>
The ultimate goal is to make the factories and feature classes(Pipe,<br>
AuthModule, etc) flexible enough that circular dependencies can be<br>
broken and 1) modularization can happen and 2) feature additions can be<br>
quicker and change fewer stable APIs.<br>
<br>
Comments, questions, and tomatoes are welcome.<br>
<span class=""><font color="#888888"><br>
--<br>
Summers Pittman<br>
&gt;&gt;Phone:404 941 4698<br>
&gt;&gt;Java is my crack.<br>
<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>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Matthias Wessendorf <br><br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>
sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
</div></div>