[aerogear-dev] Errai javascript aerogear wrappers
Summers Pittman
supittma at redhat.com
Tue Mar 26 11:53:24 EDT 2013
On 03/26/2013 03:34 AM, Erik Jan de Wit wrote:
> Hi guys,
>
> I want to create wrappers around aerogear-js to be able to use the Aerogear from Erria. What this task comes down to is to create a java api that calls the aerogear-js api. But then I rembered seeing an example in a presentation that you kept the apis the same on all platforms.
We try to keep them similar but not the same. Our classes all implement
the same behaviour but there is room for platform idioms (as you discovered)
> So my work is already done I just have to look at the api defined in android. The only problem is there are some differences, for instance DataManager on the js side it can be created by passing some config object, but on the android side there is a need for an IdGenerator and a StoreFactory. So what do you guys think should I stick closer to the js api and really try to create a minimal wrapper that is close to that, or should I stick with the android api and maybe use parts of Errai to implement a bridge?
You would probably want your library to look more like the JS library
because your are interfacing that that. Under the hood JS and Android
are very different (both from a platform and implementation).
>
> Cheers,
> Erik Jan
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
More information about the aerogear-dev
mailing list