GWT Callback
A future-proof port of the com.google.gwt.user.client.rpc
GWT module, with no dependency on gwt-user
(besides the Java Runtime Emulation), to prepare for GWT 3 / J2Cl.
Migrating from com.google.gwt.user.client.AsyncCallback
-
Add the dependency to your build.
For Maven:
<dependency> <groupId>org.gwtproject.callback</groupId> <artifactId>gwt-callback</artifactId> <version>HEAD-SNAPSHOT</version> </dependency>
For Gradle:
implementation("org.gwtproject.callback:gwt-callback:HEAD-SNAPSHOT")
-
Update your GWT module to use
<inherits name="org.gwtproject.callback.AsyncCallback" />
-
Change the
import
s in your Java source files:import org.gwtproject.callback.client;
Instructions
To build the module:
- run
mvn clean verify
on the parent directory.
System Requirements
GWT Callback requires GWT 2.8.2 or greater!
Dependencies
GWT Callback does not depend on any other module.