You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1001 B
Java
38 lines
1001 B
Java
package org.gcube.portlets.user.geoportaldataviewer.client;
|
|
|
|
import com.google.gwt.core.client.GWT;
|
|
import com.google.gwt.user.client.rpc.AsyncCallback;
|
|
|
|
public interface GreetingServiceAsync
|
|
{
|
|
|
|
/**
|
|
* GWT-RPC service asynchronous (client-side) interface
|
|
* @see org.gcube.portlets.user.geoportaldataviewer.client.GreetingService
|
|
*/
|
|
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 GreetingServiceAsync instance;
|
|
|
|
public static final GreetingServiceAsync getInstance()
|
|
{
|
|
if ( instance == null )
|
|
{
|
|
instance = (GreetingServiceAsync) GWT.create( GreetingService.class );
|
|
}
|
|
return instance;
|
|
}
|
|
|
|
private Util()
|
|
{
|
|
// Utility class should not be instantiated
|
|
}
|
|
}
|
|
}
|