org.apache.yoko.rmi.impl
Class RMIStubHandler
java.lang.Object
org.apache.yoko.rmi.impl.RMIStubHandler
- All Implemented Interfaces:
- Serializable, StubHandler
public class RMIStubHandler
- extends Object
- implements StubHandler, Serializable
This class is the InvocationHandler for instances of POAStub. When a client
calls a remote method, this is translated to a call to the invoke() method in
this class.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RMIStubHandler
protected RMIStubHandler()
stubWriteReplace
public Object stubWriteReplace(RMIStub stub)
- Description copied from interface:
StubHandler
- Handle a writeReplace operation on a Stub.
- Specified by:
stubWriteReplace
in interface StubHandler
- Parameters:
stub
- The source RMIStub.
- Returns:
- The replacement object for serialization.
invoke
public Object invoke(RMIStub stub,
MethodDescriptor method,
Object[] args)
throws Throwable
- Description copied from interface:
StubHandler
- 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.
- Specified by:
invoke
in interface StubHandler
- 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
Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.