|
LibraryOverview
A high-level tour of the major components of GWTP.
Type-Documentation IntroductionThis document will give you a high-level tour of the major components. To jump right in, read the Getting Started page or the javadoc. For more details on the jars related to these different components see DescriptionOfIndividualJars. ComponentsGWTP offers the following components:
MVPThe MVP component is the core of GWTP. It contains a collection of client-side Java classes that lets you organize your application into a loosely connected collection of Presenter-View pairs, following Google's recommended approach. For more information on this, follow the Getting Started tutorial. DispatchThe dispatch component allows your application to communicate with the server via the well-known Command design pattern. This let's you easily address cross-cutting concerns like action validation or undo stacks. For the moment, this module's documentation is minimal. However, since it is a fork from the excellent GWT Dispatch, you will find a lot of information over there. Don't hesitate to ask in our Google Group if you have questions related to GWTP's new features. CrawlerThe goal of the crawler module is to make your AJAX application crawlable from any search engines supporting Google's proposed approach. It uses a simple filter to access the crawler service described below. The crawler filter can be used on AppEngine or with any other servlet container. Crawler ServiceThe crawler service is a simple implementation of a service that can render AJAX pages. It is designed to run on AppEngine but can be called by your application even if this one runs on another servlet container. It is meant to be called by the crawler filter described above. AnnotationThe annotation module combines a number of annotation processors that lets you easily generate tedious boilerplate code for events, dispatcher actions and their responses, and DTOs. LocalizerFor the moment, this component only offers the MergeLocale script to help organize the property files generated by GWT localization tools. It's particularly useful when internationalizing UIBinder files, as mentioned in the GWT documentation. TesterThis component offers a number of classes to facilitate testing of an application built with GWTP. This includes utilities to facilitate mocking the Provider and AsyncProvider, to stub the dispatcher, etc. Most of these components can be used with any testing framework, but some are targeted more specifically towards the use of JUnit and mockito. They simplify the setup process when using dependency injection. The mockito-dependent code is entirely contained in gwtp-mockito.jar. (Note: As of version 0.4, this module is currently in development and shouldn't be used.) | |