public interface InvocationDispatcher
BasicJeriExporter
, an invocation dispatcher (and proxy) is created via
the InvocationLayerFactory
in the exporter.
An invocation dispatcher is generally responsible for reading a representation of the method to be invoked, unmarshalling the arguments for the invocation, invoking the method on the target remote object with those arguments, and marshalling the result of that invocation.
BasicJeriExporter
Modifier and Type | Method and Description |
---|---|
void |
dispatch(Remote impl,
InboundRequest request,
Collection context)
Dispatches the invocation represented by an
InboundRequest
to the specified remote object. |
void dispatch(Remote impl, InboundRequest request, Collection context)
InboundRequest
to the specified remote object.
Dispatching the invocation generally entails:
The result should generally be encoded in a manner that will indicate to the reader of the response whether the result is a return value or an exception.
impl
- a remote objectrequest
- inbound request object for reading arguments and
writing the resultcontext
- a modifiable server context collectionNullPointerException
- if any argument is null