Created
January 12, 2012 21:04
-
-
Save ms-tg/1603099 to your computer and use it in GitHub Desktop.
./TIMWeb/src/main/java/gwt/example01firstlight/client/Example01FirstLightService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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