package com.mycompany.client;

import java.util.Collection;

import com.google.gwt.user.client.rpc.AsyncCallback;

public abstract class GwtRpcDataSourceEndpoint<T> {
   public abstract void callEndpoint(AsyncCallback callback, Object ... parameters);
   
   public Collection<T> transformResult(Object result) {
      return (Collection<T>)result;
   }
   
   public void postFailure(Throwable cause) {
      
   }
   
   public void postSuccess(Object result) {
      
   }
}
