Skip to content

Instantly share code, notes, and snippets.

@Elrhino
Created October 19, 2015 18:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Elrhino/4bb75a22c2beb4462d99 to your computer and use it in GitHub Desktop.
Save Elrhino/4bb75a22c2beb4462d99 to your computer and use it in GitHub Desktop.
Code snippets from toaster launcher part 2
import com.google.gwt.inject.client.AbstractGinModule;
import com.gwtplatform.dispatch.rest.client.RestApplicationPath;
import com.gwtplatform.dispatch.rest.client.gin.RestDispatchAsyncModule;
public class RestDispatchModule extends AbstractGinModule {
@Override
protected void configure() {
RestDispatchAsyncModule.Builder dispatchBuilder = new RestDispatchAsyncModule.Builder();
install(dispatchBuilder.build());
bindConstant().annotatedWith(RestApplicationPath.class).to("http://toaster-launcher-api.appspot.com");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment