org.apache.yoko.rmi.impl
Interface StubHandler

All Known Implementing Classes:
RMIStubHandler

public interface StubHandler

This class is the interface for instances of POAStub. When a client calls a remote method, this is translated to a call to the invoke() method in this class.


Method Summary
 Object invoke(RMIStub stub, MethodDescriptor method, Object[] args)
          Invocation method for an method call.
 Object stubWriteReplace(RMIStub stub)
          Handle a writeReplace operation on a Stub.
 

Method Detail

invoke

Object invoke(RMIStub stub,
              MethodDescriptor method,
              Object[] args)
              throws Throwable
Invocation method for an method call. This method catches the calls from the generated stub method and handles the appropriate argument and return value marshalling.

Parameters:
stub - The stub object used to catch the call.
method - The descriptor for the method being invoked.
args - The arguments passed to the method.
Returns:
The method return value (if any).
Throws:
Throwable

stubWriteReplace

Object stubWriteReplace(RMIStub stub)
Handle a writeReplace operation on a Stub.

Parameters:
stub - The source RMIStub.
Returns:
The replacement object for serialization.


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.