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