com.threerings.presents.util
Class IgnoreConfirmAdapter<T>
java.lang.Object
com.threerings.presents.util.IgnoreConfirmAdapter<T>
- Type Parameters:
T - the type of result expected by the listener.
- All Implemented Interfaces:
- ResultListener<T>
- Direct Known Subclasses:
- ConfirmAdapter
public class IgnoreConfirmAdapter<T>
- extends Object
- implements ResultListener<T>
Adapts the response from a ResultListener to a InvocationService.ConfirmListener wherein the
result is ignored. If the failure is an instance fo InvocationException the message will
be passed on to the confirm listener, otherwise they will be provided with InvocationCodes.INTERNAL_ERROR.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_listener
protected InvocationService.ConfirmListener _listener
IgnoreConfirmAdapter
public IgnoreConfirmAdapter(InvocationService.ConfirmListener listener)
- Creates an adapter with the supplied listener.
requestCompleted
public void requestCompleted(T result)
- Specified by:
requestCompleted in interface ResultListener<T>
requestFailed
public void requestFailed(Exception cause)
- Specified by:
requestFailed in interface ResultListener<T>