litesoft
Diff Revisions
338
vs
341
for /trunk/GWT_Sandbox/CS_IDEA/src/org/litesoft/sandbox/csapp/client/CSappService.java
|
@@ -1,25 +1,15 @@ |
1 |
1 |
|
package org.litesoft.sandbox.csapp.client; |
2 |
2 |
|
|
3 |
|
- |
import com.google.gwt.core.client.GWT; |
4 |
|
- |
import com.google.gwt.user.client.rpc.RemoteService; |
5 |
|
- |
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; |
|
3 |
+ |
import com.google.gwt.core.client.*; |
|
4 |
+ |
import com.google.gwt.user.client.rpc.*; |
6 |
5 |
|
|
7 |
6 |
|
@RemoteServiceRelativePath("CSappService") |
8 |
7 |
|
public interface CSappService extends RemoteService |
9 |
8 |
|
{ |
10 |
9 |
|
String getMessage( String msg ); |
11 |
10 |
|
|
12 |
|
- |
/** |
13 |
|
- |
* Utility/Convenience class. |
14 |
|
- |
* Use CSappService.App.getInstance() to access static instance of CSappServiceAsync |
15 |
|
- |
*/ |
16 |
|
- |
public static class App |
|
11 |
+ |
public interface Async |
17 |
12 |
|
{ |
18 |
|
- |
private static CSappServiceAsync ourInstance = GWT.create( CSappService.class ); |
19 |
|
- |
|
20 |
|
- |
public static synchronized CSappServiceAsync getInstance() |
21 |
|
- |
{ |
22 |
|
- |
return ourInstance; |
23 |
|
- |
} |
|
13 |
+ |
final CSappServiceAsync INSTANCE = GWT.create( CSappService.class ); |
24 |
14 |
|
} |
25 |
15 |
|
} |