|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.presents.server.InvocationDispatcher<T>
public abstract class InvocationDispatcher<T extends InvocationMarshaller<?>>
Provides the base class via which invocation service requests are dispatched.
| Field Summary | |
|---|---|
InvocationProvider |
provider
The invocation provider for whom we're dispatching. |
| Constructor Summary | |
|---|---|
InvocationDispatcher()
|
|
| Method Summary | ||
|---|---|---|
protected
|
cast(Object value)
Performs type casts in a way that works for parameterized types as well as simple types. |
|
abstract T |
createMarshaller()
Creates an instance of the appropriate InvocationMarshaller derived class for use
with this dispatcher. |
|
void |
dispatchRequest(ClientObject source,
int methodId,
Object[] args)
Dispatches the specified method to our provider. |
|
InvocationProvider |
getProvider()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public InvocationProvider provider
| Constructor Detail |
|---|
public InvocationDispatcher()
| Method Detail |
|---|
public abstract T createMarshaller()
InvocationMarshaller derived class for use
with this dispatcher.
public InvocationProvider getProvider()
getProvider in interface InvocationManager.Dispatcher
public void dispatchRequest(ClientObject source,
int methodId,
Object[] args)
throws InvocationException
dispatchRequest in interface InvocationManager.DispatcherInvocationExceptionprotected <K> K cast(Object value)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||