Summary: This document provides basic information about the extension providing support for analyzing JEE applications (via the JEE Analyzer) that use the Google Web Toolkit (GWT) framework.
Please see Google Web Toolkit - 1.0 - Release Notes for more information.
In what situation should you install this extension?
- If you have some imports starting with "com.google.gwt." in your java code.
- If you have some files with the extensions ".gwt.xml" and ".ui.xml" with your java code.
Supported Google Web Toolkit (GWT) framework items
- Modules present in files "*.gwt.xml".
- Views present in files "*.ui.xml" and links to their handler methods present in java code.
- Client/server links created through "@RemoteServiceRelativePath" java interface annotation.
Function Point, Quality and Sizing support
- Function Points (transactions): a green tick indicates that OMG Function Point counting and Transaction Risk Index are supported
- Quality and Sizing: a green tick indicates that CAST can measure size and that a minimum set of Quality Rules exist
|Quality and Sizing|
CAST AIP release
Supported DBMS servers
This extension is compatible with the following DBMS servers:
|An installation of any compatible release of AIP Core (see table above)|
Dependencies with other extensions
Some CAST extensions require the presence of other CAST extensions in order to function correctly. The Google Web Toolkit extension requires that the following other CAST extensions are also installed:
The JEE Analyzer is not strictly a dependency, but since this extension is always installed with AIP Core, you do not need to do anything.
Download and installation instructions
What results can you expect?
The following objects are displayed in CAST Enlighten:
GWT Event Handler
GWT Remote resource service
GWT Remote Operation
GWT Post resource service
GWT Get resource service
GWT Put resource service
GWT Delete resource service
- The "rename-to" value is used as the module name.
- The "entry-point" tag is used for the class which contains the UI initialisation.
Links from the module to the initialisation java methods are created.
Views and event handlers
View and java class have the same file names, but differ by their extension (".ui.xml" for the view and ".java" for the class). Handler and view are matched using "ui:field" value in view and "@UiField" class members.
MobileTaskEditView.ui.xml (view code):
MobileTaskEditView.java (Event handler code):
A view can be linked directly to a java method when the java method is annotated with "@UiHandler":
A callLink is created to the "start", "mayStop", "onCancel", "onStop" class methods.
Remote resource services and remote operations
They are created when the interface "@RemoteServiceRelativePath" annotation is present.
The operation is created from the class implementing the interface. The difficult part is to find from where the resource service is called, and because there is no class implementing the interface on the client side, an instance is created directly from the interface using GWT.create. For example:
Support of RestyGWT
Support of AsyncProvider
Classes which inherit from "com.google.gwt.core.client.AsyncProvider" have a "get" method. A link is created from their constructor to this method.
- Resource services corresponding to com.google.gwt.http.client.RequestBuilder.sendRequest" and using "com.google.gwt.http.client.RequestBuilder".