<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 02/10/2014 07:41 AM, Daniel Bevenius
wrote:<br>
</div>
<blockquote
cite="mid:CAFJm-3HCabmPt6740WiGafkAvAS9EQL1jmj3yL9XqzQL6DOKYQ@mail.gmail.com"
type="cite">
<div dir="ltr">Hi,
<div><br>
</div>
<div>I've done some work on [1] in regards to coming up with a
common sync data format for our clients, but I and messed it
up [2]. Long story short is that I did not take into account
some of client languages features. So here is a new suggestion
that will hopefully work with all our client languages:</div>
<div><br>
</div>
<div><span
style="color:rgb(51,51,51);font-family:Consolas,'Liberation
Mono',Courier,monospace;font-size:12px;white-space:pre-wrap">public
interface SyncObject<T, ID> {</span></div>
<div>
<pre class="" style="font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;margin-top:0px;margin-bottom:0px;word-wrap:break-word;white-space:pre-wrap;padding-left:8px;color:rgb(51,51,51)"> ID objectId();</pre>
<pre class="" style="font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;margin-top:0px;margin-bottom:0px;word-wrap:break-word;white-space:pre-wrap;padding-left:8px;color:rgb(51,51,51)"> String revision();</pre>
<pre class="" style="font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;margin-top:0px;margin-bottom:0px;word-wrap:break-word;white-space:pre-wrap;padding-left:8px;color:rgb(51,51,51)"> T content();</pre>
<pre class="" style="font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;margin-top:0px;margin-bottom:0px;word-wrap:break-word;white-space:pre-wrap;padding-left:8px;color:rgb(51,51,51)">}</pre>
<pre class="" style="text-indent:0px;margin-top:0px;margin-bottom:0px;word-wrap:break-word;padding-left:8px">
</pre>
</div>
<div>What do people think about this?</div>
</div>
</blockquote>
One of the things I'm wondering about is, in the far far future when
our code is told we have the server push^H^H^H^H asynchronously
notifying the device of data changes, how will Java know what type
the data coming in is? It MAY be useful to have a name space
feature in the message.<br>
<blockquote
cite="mid:CAFJm-3HCabmPt6740WiGafkAvAS9EQL1jmj3yL9XqzQL6DOKYQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div><br>
</div>
<div><br>
</div>
<div>[1] <a moz-do-not-send="true"
href="https://issues.jboss.org/browse/AEROGEAR-1406">https://issues.jboss.org/browse/AEROGEAR-1406</a><br>
</div>
<div>[2] <a moz-do-not-send="true"
href="https://github.com/aerogear/aerogear.org/commit/5e81e5526b5850485eeb83a8ff7ddc1e4d6d2c40">https://github.com/aerogear/aerogear.org/commit/5e81e5526b5850485eeb83a8ff7ddc1e4d6d2c40</a></div>
<div><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
aerogear-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/aerogear-dev">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></pre>
</blockquote>
<br>
</body>
</html>