Subversion Repository Public Repository

litesoft

Diff Revisions 150 vs 151 for /trunk/Java/GWT/Client/src/org/litesoft/GWT/shared/service/AppServiceAsyncProxy.java

Diff revisions: vs.
  @@ -14,51 +14,51 @@
14 14 {
15 15 private final AppServiceAsync mService;
16 16
17 - private AppServiceAsyncProxy(AppServiceAsync pService)
17 + private AppServiceAsyncProxy( AppServiceAsync pService )
18 18 {
19 19 mService = pService;
20 20 }
21 21
22 22 public static AppServiceAsync create()
23 23 {
24 - return GWT.create(AppService.class);
24 + return GWT.create( AppService.class );
25 25 }
26 26
27 - public static AppServiceAsync wrap(AppServiceAsync pService)
27 + public static AppServiceAsync wrap( AppServiceAsync pService )
28 28 {
29 - return new AppServiceAsyncProxy(pService);
29 + return new AppServiceAsyncProxy( pService );
30 30 }
31 31
32 32 @Override
33 - public <T extends AppResponse<?>> void get(AppRequest<T> pRequest, final AsyncCallback<T> pCallback)
33 + public <T extends AppResponse<?>> void get( AppRequest<T> pRequest, final AsyncCallback<T> pCallback )
34 34 {
35 - mService.get(pRequest, new AsyncCallback<T>()
35 + mService.get( pRequest, new AsyncCallback<T>()
36 36 {
37 37 @Override
38 - public void onSuccess(final T pResult)
38 + public void onSuccess( final T pResult )
39 39 {
40 - DeferredCommand.addCommand(new Command()
40 + DeferredCommand.addCommand( new Command()
41 41 {
42 42 @Override
43 43 public void execute()
44 44 {
45 - pCallback.onSuccess(pResult);
45 + pCallback.onSuccess( pResult );
46 46 }
47 - });
47 + } );
48 48 }
49 49
50 50 @Override
51 - public void onFailure(final Throwable pCaught)
51 + public void onFailure( final Throwable pCaught )
52 52 {
53 - DeferredCommand.addCommand(new Command()
53 + DeferredCommand.addCommand( new Command()
54 54 {
55 55 @Override
56 56 public void execute()
57 57 {
58 - pCallback.onFailure(pCaught);
58 + pCallback.onFailure( pCaught );
59 59 }
60 - });
60 + } );
61 61 }
62 - });
62 + } );
63 63 }
64 64 }