{"id":15297562,"url":"https://github.com/mvp4g/mvp4g","last_synced_at":"2025-04-13T22:32:27.138Z","repository":{"id":28980758,"uuid":"32507265","full_name":"mvp4g/mvp4g","owner":"mvp4g","description":"A framework to build a gwt application the right way","archived":false,"fork":false,"pushed_at":"2020-11-12T06:35:59.000Z","size":141407,"stargazers_count":29,"open_issues_count":4,"forks_count":7,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-03-27T13:03:33.241Z","etag":null,"topics":["clientside","eventbus","gwt","java","mvp","mvp4g"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mvp4g.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-19T07:35:15.000Z","updated_at":"2021-05-25T10:06:42.000Z","dependencies_parsed_at":"2022-09-05T12:00:43.303Z","dependency_job_id":null,"html_url":"https://github.com/mvp4g/mvp4g","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvp4g%2Fmvp4g","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvp4g%2Fmvp4g/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvp4g%2Fmvp4g/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvp4g%2Fmvp4g/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mvp4g","download_url":"https://codeload.github.com/mvp4g/mvp4g/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248790721,"owners_count":21162077,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clientside","eventbus","gwt","java","mvp","mvp4g"],"created_at":"2024-09-30T19:18:18.527Z","updated_at":"2025-04-13T22:32:24.335Z","avatar_url":"https://github.com/mvp4g.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# MVP4G\nGWT is a very powerful framework that allows you to build efficient applications, especially if you follow the best practices described by Ray Ryan at Google IO 2009:\n\n- Event Bus\n- Dependency Injection\n- Model View Presenter\n- Place Service\n\n(see [https://www.youtube.com/watch?v=PDuhR18-EdM for the video](https://www.youtube.com/watch?v=PDuhR18-EdM) or [http://extgwt-mvp4g-gae.blogspot.com/2009/10/gwt-app-architecture-best-practices.html](http://extgwt-mvp4g-gae.blogspot.com/2009/10/gwt-app-architecture-best-practices.html) for the text, thanks to Araik Minosian.)\nHowever, following these best practices is not always easy and you can end up with a project with a lot of boilerplate code that is hard to manage.\n\nThat's why Mvp4g offers a solution to following these best practices using simple mechanisms that only need a few lines of code and a few annotations.\n\nThis is all you need to create an event bus with four events:\n```\n@Events(startPresenter = CompanyListPresenter.class, module = CompanyModule.class) \npublic interface CompanyEventBus extends EventBus {          \n        @Event( handlers = CompanyEditPresenter.class )        \n        public void goToEdit( CompanyBean company );          \n        \n        @Event( handlers = CompanyDisplayPresenter.class )         \n        public void goToDisplay( CompanyBean company );          \n        \n        @Event( handlers = { CompanyListPresenter.class, CompanyDisplayPresenter.class } )         \n        public void companyCreated( CompanyBean newBean );          \n        \n        @Event( handlers = CompanyListPresenter.class )         \n        public void companyDeleted( CompanyBean newBean ); \n}\n```\nEventbus:\n- create an event bus using a few annotations and one centralized interface where you can easily manage your events\n- control your event flow thanks to event filtering, event logs, event broadcast, passive event\n- have the same control of user's navigation as the GWT Activities/Place architecture thanks to Navigation Event\n\nMVP:\n- create a presenter and inject a view with one annotation\n- inject anything you want to your presenters/views thanks to GIN\n- support for multiple instances of the same presenter\n- easily implement the Reverse MVP (or View Delegate) pattern thanks to Reverse View feature\n- easily control your presenter thanks to onBeforeEvent, onLoad and onUnload methods (thanks to the Cycle Presenter feature)\n\nHistory Management/Place Service:\n- convert any event to history token thanks to simple history converters\n- support for crawlable urls\n- easily customize your place service\n- support for hyperlink token\n\nNot only does Mvp4g help you follow the best practices, it also provides mechanisms to build fast applications:\n- support for GWT code splitting feature: easily divide your applications into smaller modules thanks to Multi-Modules feature or (**NEW**) split one or a few presenters thanks to Splitter.\n- support for lazy loading: build your presenters/views only when you need them. Useless presenters/views are also automatically removed.\n- (**NEW**) easily develop your application for multiple application. Reuse most of your code for Android or Iphone/Ipad devices and just switch your GIN configuration.\n\nTo understand how the framework works, you can look at the documentation, the [tutorials](https://github.com/FrankHossfeld/mvp4g/wiki/1.-Tutorials-and-Examples) or the [examples](https://github.com/FrankHossfeld/mvp4g-examples).\n\nMvp4g has been successfully used on several commercial projects, [take a look at a few of them](https://github.com/FrankHossfeld/mvp4g/wiki/1.-Tutorials-and-Examples). You can also read and post feedback on the official [GWT marketplace](http://www.gwtmarketplace.com/#mvp4g) or [Mvp4g forum](https://groups.google.com/forum/#!forum/mvp4g).\n\nAny comments or ideas to improve the framework are more than welcome. If you want to help us to improve and contribute to this project, feel free to do so.\n\nTo ensure quality, library code is covered by JUnit tests.\n\n# Note \nMvp4g uses heavily generators. Also it has a dependency to GIN, which is at least end of life. That are some of the reasons why mvp4g will never work with j2cl/GWT 3!\n\nOf course mvp4g will be maintained in the future. Bugs will be fixed, etc. But, you will not see any no features, etc. \n\nIf you are planning to update your project and make it j2cl ready, you have two opportunities:\n1. switch to [mvp4g2](https://github.com/mvp4g/mvp4g2)\n2. switch to [Nalu](https://github.com/NaluKit/nalu) \n\nBoth frameworks have been tested with j2cl!\n\nIn case you are uncertain, which one of the frameworks to choose, ask inside the [Nalu Gitter room](https://gitter.im/Nalukit42/Lobby).\n\n\n## Inportant Notice\nStarting with version v1.6.0 mvp4g will use GWT 2.9.0!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmvp4g%2Fmvp4g","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmvp4g%2Fmvp4g","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmvp4g%2Fmvp4g/lists"}