org.apache.yoko.rmi.impl
Class RMIPersistentStub
java.lang.Object
org.omg.CORBA.portable.ObjectImpl
org.omg.CORBA_2_3.portable.ObjectImpl
javax.rmi.CORBA.Stub
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
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 |
RMIPersistentStub
public RMIPersistentStub(Stub stub,
Class type)
- constructor used in org.apache.yoko.rmi.impl.RMIStubHandler
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.