org.apache.yoko.rmi.impl
Class RMIPersistentStub

java.lang.Object
  extended by org.omg.CORBA.portable.ObjectImpl
      extended by org.omg.CORBA_2_3.portable.ObjectImpl
          extended by javax.rmi.CORBA.Stub
              extended by org.apache.yoko.rmi.impl.RMIPersistentStub
All Implemented Interfaces:
Serializable, Object

public class RMIPersistentStub
extends Stub

RMIStub's (org.apache.yoko.rmi.impl) implement writeReplace by returning an instance of this class; and this class then implements readResolve to narrow itself to the correct type. This way, object references to RMI exported objects are transferred without loss of the runtime type.

Author:
Kresten Krab Thorup (krab@eos.dk)
See Also:
Serialized Form

Constructor Summary
RMIPersistentStub(Stub stub, Class type)
          constructor used in org.apache.yoko.rmi.impl.RMIStubHandler
 
Method Summary
 String[] _ids()
          standard method
 Object readResolve()
          narrows this object (once deserialized) to the relevant type
 
Methods inherited from class javax.rmi.CORBA.Stub
connect, equals, hashCode, toString
 
Methods inherited from class org.omg.CORBA_2_3.portable.ObjectImpl
_get_codebase
 
Methods inherited from class org.omg.CORBA.portable.ObjectImpl
_create_request, _create_request, _duplicate, _get_delegate, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_delegate, _set_policy_override
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RMIPersistentStub

public RMIPersistentStub(Stub stub,
                         Class type)
constructor used in org.apache.yoko.rmi.impl.RMIStubHandler

Method Detail

readResolve

public Object readResolve()
                   throws ClassNotFoundException
narrows this object (once deserialized) to the relevant type

Throws:
ClassNotFoundException

_ids

public String[] _ids()
standard method

Specified by:
_ids in class ObjectImpl


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