gis-viewer-app/src/main/java/org/gcube/portlets/user/gisviewerapp/client/rpc/GisViewerAppServiceAsync.java

38 lines
1019 B
Java

package org.gcube.portlets.user.gisviewerapp.client.rpc;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.AsyncCallback;
public interface GisViewerAppServiceAsync
{
/**
* GWT-RPC service asynchronous (client-side) interface
* @see org.gcube.portlets.user.gisviewerapp.client.rpc.GisViewerAppService
*/
void greetServer( java.lang.String name, AsyncCallback<java.lang.String> callback );
/**
* Utility class to get the RPC Async interface from client-side code
*/
public static final class Util
{
private static GisViewerAppServiceAsync instance;
public static final GisViewerAppServiceAsync getInstance()
{
if ( instance == null )
{
instance = (GisViewerAppServiceAsync) GWT.create( GisViewerAppService.class );
}
return instance;
}
private Util()
{
// Utility class should not be instanciated
}
}
}