Search in sources :

Example 1 with RemoteCommandServiceAsync

use of org.activityinfo.shared.command.RemoteCommandServiceAsync in project activityinfo by bedatadriven.

the class RemoteServiceProvider method get.

@Override
public RemoteCommandServiceAsync get() {
    RemoteCommandServiceAsync remoteService = (RemoteCommandServiceAsync) GWT.create(RemoteCommandService.class);
    ServiceDefTarget endpoint = (ServiceDefTarget) remoteService;
    String moduleRelativeURL = GWT.getModuleBaseURL() + "cmd";
    endpoint.setServiceEntryPoint(moduleRelativeURL);
    return remoteService;
}
Also used : RemoteCommandServiceAsync(org.activityinfo.shared.command.RemoteCommandServiceAsync) RemoteCommandService(org.activityinfo.shared.command.RemoteCommandService) ServiceDefTarget(com.google.gwt.user.client.rpc.ServiceDefTarget)

Aggregations

ServiceDefTarget (com.google.gwt.user.client.rpc.ServiceDefTarget)1 RemoteCommandService (org.activityinfo.shared.command.RemoteCommandService)1 RemoteCommandServiceAsync (org.activityinfo.shared.command.RemoteCommandServiceAsync)1