For Android, we'll want something similar for Java. Does Mojo have a stable Java interface? Specifically, is https://github.com/domokit/mojo/tree/master/mojo/public/java intended to be binary stable? More operationally, if we tell developers to build jars against those definitions, will we be able to continue loading those jars as the system evolves?
For Android, we'll want something similar for Java. Does Mojo have a stable Java interface? Specifically, is https://github.com/domokit/mojo/tree/master/mojo/public/java intended to be binary stable? More operationally, if we tell developers to build jars against those definitions, will we be able to continue loading those jars as the system evolves?So, non-withstanding that nothing is stable yet, the idea is that mojo/public/java/system is a stable API, but mojo/public/java/bindings and mojo/public/java/application are not. When you write a mojo application, you bring with you (put in your jar) bindings and application so that they match the version of the code generator you use. system on the other hand is provided by the content handler and allows you to access the mojo apis.
That makes good sense, thanks. If I have multiple jars produced by different developers in the same JVM, so I need to do anything special to make sure mojo/public/java/bindings and mojo/public/java/application don't collide while being able to share mojo/public/java/system? For example, do I need to pull any tricks with the class loader or anything?
That makes good sense, thanks. If I have multiple jars produced by different developers in the same JVM, so I need to do anything special to make sure mojo/public/java/bindings and mojo/public/java/application don't collide while being able to share mojo/public/java/system? For example, do I need to pull any tricks with the class loader or anything?Yes, you will have to play with the class loader and mostly use a different class loader for each of them so that they do not step on one another. The java content handler is doing this in mojo (it is probably more complicated that your use case, because it also needs to handle native code).
--
You received this message because you are subscribed to the Google Groups "mojo-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mojo-dev+u...@chromium.org.
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To post to this group, send email to flutt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/CAOW3Ud0znEiUs-A%3D7F64Juhq3v%3D2stf8ZuP_M663cuLho171VA%40mail.gmail.com.
+100! Yes this exactly.
We should write an Android-specific bindings layer.
Jeff.