Skip to content

Instantly share code, notes, and snippets.

@ms-tg
Created January 12, 2012 21:04
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 ms-tg/1603099 to your computer and use it in GitHub Desktop.
Save ms-tg/1603099 to your computer and use it in GitHub Desktop.
./TIMWeb/src/main/java/gwt/example01firstlight/client/Example01FirstLightService.java
package gwt.example01firstlight.client;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
@RemoteServiceRelativePath("ex1")
public interface Example01FirstLightService extends RemoteService {
String getMessage(String msg);
/**
* Utility/Convenience class.
* Use Example01FirstLightService.App.getInstance() to access static instance of Example01FirstLightServiceAsync
*/
public static class App {
private static Example01FirstLightServiceAsync ourInstance = GWT.create(Example01FirstLightService.class);
public static synchronized Example01FirstLightServiceAsync getInstance() {
return ourInstance;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment