Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GWT Dynamic Module Loading

Is there a mechanism to dynamically load a GWT Module?

The idea is to create a pluggable GWT-based system: a core GWT module that dynamically loads another GWT module and a bus communication system to permit the communication through loaded modules.

Any help?

like image 830
Simone Vellei Avatar asked Sep 14 '26 14:09

Simone Vellei


2 Answers

Possible duplicate of Web Application using OSGi and GWT

Also, see the information in this GWT User forum thread - http://groups.google.com/group/google-web-toolkit/msg/4a3f912cb89a7256

To summarize, its possible, but not recommended. Your requirement is orthogonal to GWT's philosophy and architecture. If you must, the GWT Exporter project is a useful starting point to enable communication between modules.

like image 174
Sripathi Krishnan Avatar answered Sep 16 '26 03:09

Sripathi Krishnan


Code splitting does successfully handle the separated-loading issue -- but it does not address the separated-compilation issue.

Modular-interoperability with separated-compilation will never be the recommended default but GWT team should look into this in future.

If we are talking about a plug-in based architecture, different plug-in developer should develop their own UI and compile and give to the framework. Framework should dynamically load them.

I am still looking for and way to do it (do it better way).

like image 43
Tapas Adhikary Avatar answered Sep 16 '26 03:09

Tapas Adhikary



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!