net.customware.gwt.dispatch.client
Class AbstractDispatchAsync

java.lang.Object
  extended by net.customware.gwt.dispatch.client.AbstractDispatchAsync
All Implemented Interfaces:
DispatchAsync
Direct Known Subclasses:
SecureDispatchAsync, StandardDispatchAsync

public abstract class AbstractDispatchAsync
extends Object
implements DispatchAsync

An abstract base class that provides methods that can be called to handle success or failure results from the remote service. These should be called by the implementation of DispatchAsync.execute(net.customware.gwt.dispatch.shared.Action, com.google.gwt.user.client.rpc.AsyncCallback).

Author:
David Peterson

Constructor Summary
AbstractDispatchAsync(ExceptionHandler exceptionHandler)
           
 
Method Summary
protected
<A extends Action<R>,R extends Result>
void
onFailure(A action, Throwable caught, com.google.gwt.user.client.rpc.AsyncCallback<R> callback)
           
protected
<A extends Action<R>,R extends Result>
void
onSuccess(A action, R result, com.google.gwt.user.client.rpc.AsyncCallback<R> callback)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.customware.gwt.dispatch.client.DispatchAsync
execute
 

Constructor Detail

AbstractDispatchAsync

public AbstractDispatchAsync(ExceptionHandler exceptionHandler)
Method Detail

onFailure

protected <A extends Action<R>,R extends Result> void onFailure(A action,
                                                                Throwable caught,
                                                                com.google.gwt.user.client.rpc.AsyncCallback<R> callback)

onSuccess

protected <A extends Action<R>,R extends Result> void onSuccess(A action,
                                                                R result,
                                                                com.google.gwt.user.client.rpc.AsyncCallback<R> callback)


Copyright © 2011 customware.net. All Rights Reserved.