Package javax.rmi.CORBA
Interface PortableRemoteObjectDelegate
- All Known Implementing Classes:
PortableRemoteObject
public interface PortableRemoteObjectDelegate
Supports delegation for method implementations in
PortableRemoteObject.
The delegate is a singleton instance of a class that implements this
interface and provides a replacement implementation for all the
methods of javax.rmi.PortableRemoteObject.
Delegates are enabled by providing the delegate's class name as the
value of the
javax.rmi.CORBA.PortableRemoteObjectClass
system property.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidDelegation call forPortableRemoteObject.connect(java.rmi.Remote, java.rmi.Remote).voidexportObject(Remote obj) Delegation call forPortableRemoteObject.exportObject(java.rmi.Remote).Delegation call forPortableRemoteObject.narrow(java.lang.Object, java.lang.Class).Delegation call forPortableRemoteObject.toStub(java.rmi.Remote).voidunexportObject(Remote obj) Delegation call forPortableRemoteObject.unexportObject(java.rmi.Remote).
-
Method Details
-
exportObject
Delegation call forPortableRemoteObject.exportObject(java.rmi.Remote).- Parameters:
obj- object to export- Throws:
RemoteException- if the object cannot be exported
-
toStub
Delegation call forPortableRemoteObject.toStub(java.rmi.Remote).- Parameters:
obj- remote to convert to stub- Returns:
- stub of the remote
- Throws:
NoSuchObjectException- if the object does not exist
-
unexportObject
Delegation call forPortableRemoteObject.unexportObject(java.rmi.Remote).- Parameters:
obj- object to unremove- Throws:
NoSuchObjectException- if the object does not exist
-
narrow
Delegation call forPortableRemoteObject.narrow(java.lang.Object, java.lang.Class).- Parameters:
narrowFrom- object to narrow fromnarrowTo- target to narrow to- Returns:
- object of the desired type
- Throws:
ClassCastException- if the object cannot be narrowed
-
connect
Delegation call forPortableRemoteObject.connect(java.rmi.Remote, java.rmi.Remote).- Parameters:
target- remote object to connectsource- starting object- Throws:
RemoteException- if an error occurred connecting
-