com.threerings.presents.client
Class InvocationDecoder

java.lang.Object
  extended by com.threerings.presents.client.InvocationDecoder
Direct Known Subclasses:
BureauDecoder, LocationDecoder

public abstract class InvocationDecoder
extends Object

Provides the basic functionality used to dispatch invocation notification events.


Field Summary
 InvocationReceiver receiver
          The receiver for which we're decoding and dispatching notifications.
 
Constructor Summary
InvocationDecoder()
           
 
Method Summary
protected
<T> T
cast(Object value)
          Performs type casts in a way that works for parameterized types as well as simple types.
 void dispatchNotification(int methodId, Object[] args)
          Dispatches the specified method to our receiver.
abstract  String getReceiverCode()
          Returns the generated hash code that is used to identify this invocation notification service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

receiver

public InvocationReceiver receiver
The receiver for which we're decoding and dispatching notifications.

Constructor Detail

InvocationDecoder

public InvocationDecoder()
Method Detail

getReceiverCode

public abstract String getReceiverCode()
Returns the generated hash code that is used to identify this invocation notification service.


dispatchNotification

public void dispatchNotification(int methodId,
                                 Object[] args)
Dispatches the specified method to our receiver.


cast

protected <T> T cast(Object value)
Performs type casts in a way that works for parameterized types as well as simple types.