-
Notifications
You must be signed in to change notification settings - Fork 2
FAQ
If you have other questions about the framework or would like further information about a question, just let me know by leaving a message on the FAQ discussion in the Mvp4g Google group or the Mvp4g Gitter room.
Yes, it will!
Mvp4g2 has no dependencies to GWT nor to any other third party lib that has a dependency to GWT! So we expect, that programs based on mvp4g2 will work with J2CL / GWT 3. But, keep in mind, that may be other libs - you are using inside your project - will avoid working with J2CL / GWT 3. In this case your application will not work with J2CL / GWT 3!
In a MVP architecture, the presenter is in charge of the logic of the application. It acts upon the model and the view. In the Mvp4g2 framework, a presenter is also an object that implements the IsPresenter-interface.
In the MVP architecture, a view is the object that displays the data and routes user commands to the presenter to act upon that data. In the Mvp4g2 framework, a view extends the LazyReverseView-class or implements the IsLazyRevierseView-interface.
The developer is free to use any widgets library he wants. There are no limitations!
The event bus is a Java object, generated by the Mvp4g library in charge of dispatching events between presenters and handlers. It allows presenters and handlers to communicate between each other without a direct link between them (no spaghetti effect).
When and how are presenters and views instantiated? When and how views and services injected into presenters? When is the event bus created and configured?
All these actions are done thanks to the following lines:
MyApplication application = new MyApplicationImpl();
application.run();
The first line instantiates the generated Java class.
The call application.run();
will:
- create the instances of views, presenters and history converters.
- create the event bus.
- injects views and event bus in the presenters, inject the eventbus into the handlers and inject the presenter into the view.
Mvp4g is 100% Java so it is guaranteed to be compatible with all the browsers thanks to the GWT compiler.
Yes, Mvp4g let you use anything you want to do the back-end communication.