com.threerings.presents.util
Class ConfirmAdapter

java.lang.Object
  extended by com.threerings.presents.util.IgnoreConfirmAdapter<Void>
      extended by com.threerings.presents.util.ConfirmAdapter
All Implemented Interfaces:
ResultListener<Void>

public class ConfirmAdapter
extends IgnoreConfirmAdapter<Void>

Adapts the response from a ResultListener to a InvocationService.ConfirmListener if the failure is an instance of 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
 
Fields inherited from class com.threerings.presents.util.IgnoreConfirmAdapter
_listener
 
Fields inherited from interface com.samskivert.util.ResultListener
NOOP
 
Constructor Summary
ConfirmAdapter(InvocationService.ConfirmListener listener)
          Creates an adapter with the supplied listener.
 
Method Summary
 
Methods inherited from class com.threerings.presents.util.IgnoreConfirmAdapter
requestCompleted, requestFailed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfirmAdapter

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