<br><br>On Saturday, September 15, 2012, Kris Borchers  wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
On Sep 15, 2012, at 10:53 AM, Glen Daniels &lt;<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;glen@thoughtcraft.com&#39;)">glen@thoughtcraft.com</a>&gt; wrote:<br>
<br>
&gt; Hey Matthias,<br>
&gt;<br>
&gt; Thanks for taking a look at the prototype!<br>
&gt;<br>
&gt; On 9/15/12 6:12 AM, Matthias Wessendorf wrote:<br>
&gt;&gt; I took a quick look at the Android API. Below are a few questions:<br>
&gt;&gt;<br>
&gt;&gt; * AeroGear.java<br>
&gt;&gt; - Is the class &#39;just&#39; a util, that offers static methods? If so,<br>
&gt;&gt; should have a private ctor and be final (since a private default ctor<br>
&gt;&gt; prevents inheritance anyways)<br>
&gt;<br>
&gt; Yup, that&#39;s the intent, but since it&#39;s just a &quot;sketch&quot; I didn&#39;t put that<br>
&gt; in - will do.<br>
&gt;<br>
&gt;&gt; - is the API_KEY really needed? Not sure, but I think that (the<br>
&gt;&gt; API_KEY) is _perhaps_ something on-top of a networking client lib,<br>
&gt;&gt; needed when entering the real &#39;BaaS&#39; market, where our lib. is used<br>
&gt;&gt; against a (specific) &#39;backend provider&#39;.<br>
&gt;<br>
&gt; Right, I was pretty much following the common BaaS pattern.  It&#39;s<br>
&gt; certainly not necessary immediately, but once we start supporting OAuth<br>
&gt; we&#39;ll want something like that anyway, so I put it in as a placeholder.<br>
&gt; Easy to remove if we decide we don&#39;t want it for now.<br>
&gt;<br>
&gt;&gt; * Utils.java<br>
&gt;&gt; - related to the API_key, I think the X-AeroGear-Client header needs<br>
&gt;&gt; to be defined/discussed - but IMO the AeroGear client lib should work<br>
&gt;&gt; also without such a key, when accessing a simple JAX-RS (read:<br>
&gt;&gt; RestEasy) service; Of course, when &#39;cloud provider&#39; start using our<br>
&gt;&gt; bits, something like API_KEY is a must.<br>
&gt;<br>
&gt; +1<br>
&gt;<br>
&gt;&gt; - the &#39;delete&#39; is public; the others (e.g. post) not...<br>
&gt;<br>
&gt; No semantic significance there.  Should probably all be package access,<br>
&gt; since AeroGear is the user-facing class.<br>
&gt;<br>
&gt;&gt; * Pipe.java<br>
&gt;&gt; - how to update an existing item?<br>
&gt;&gt; For instance in JS/iOS we use save which does an &#39;add&#39; if there is no<br>
&gt;&gt; _id_ or issues an &#39;update&#39; if the entity already exisits (e.g. has an<br>
&gt;&gt; _id_).<br>
&gt;<br>
&gt; Yep, will do that.  (although note that &quot;_id_&quot; or &quot;_id&quot; or whatever we<br>
&gt; use is another point of coupling ;) )<br>
I don&#39;t think it does. In JS, I have made it so that what ever name you use on the server to denote an &quot;id&quot;, you can tell the client lib what that name is. So whether the id field is named id or recordId, or blahblah, that is configurable when a pipe is created.</blockquote>
<div><br></div><div>Can you post a snippet for that?</div><div><br></div><div>Thx,</div><div>Matthias<span></span></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
&gt;<br>
&gt;&gt; There is no concept of a &#39;pipeline&#39;, but I guess (at least for now) on<br>
&gt;&gt; &quot;Java&quot; (aka Android) a typed list (e.g. List&lt;Pipe&gt; pipeline;) is good<br>
&gt;&gt; enough, right?<br>
&gt;&gt; But on the other hand, than it&#39;s up to the user of the api to &#39;manage&#39;<br>
&gt;&gt; all the pipes (server connections).<br>
&gt;<br>
&gt; Right.  What sort of &quot;management&quot; do you imagine, other than<br>
&gt; factory-style creation?  Pipes as they stand are extremely &quot;cheap&quot;<br>
&gt; objects (no db connections, network connections, threads, etc).<br>
&gt;<br>
&gt; Best,<br>
&gt; --Glen<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; aerogear-dev mailing list<br>
&gt; <a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;aerogear-dev@lists.jboss.org&#39;)">aerogear-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
<br>
<br>
_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;aerogear-dev@lists.jboss.org&#39;)">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>
</blockquote><br><br>-- <br>Sent from Gmail Mobile<br>