com.threerings.presents.util
Class IgnoreConfirmAdapter<T>

java.lang.Object
  extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.samskivert.util.ResultListener
ResultListener.NOOP<T>
 
Field Summary
protected  InvocationService.ConfirmListener _listener
           
 
Fields inherited from interface com.samskivert.util.ResultListener
NOOP
 
Constructor Summary
IgnoreConfirmAdapter(InvocationService.ConfirmListener listener)
          Creates an adapter with the supplied listener.
 
Method Summary
 void requestCompleted(T result)
           
 void requestFailed(Exception cause)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_listener

protected InvocationService.ConfirmListener _listener
Constructor Detail

IgnoreConfirmAdapter

public IgnoreConfirmAdapter(InvocationService.ConfirmListener listener)
Creates an adapter with the supplied listener.

Method Detail

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>