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(Remote, Remote).voidexportObject(Remote obj) Delegation call forPortableRemoteObject.exportObject(Remote).Delegation call forPortableRemoteObject.narrow(Object, Class).Delegation call forPortableRemoteObject.toStub(Remote).voidunexportObject(Remote obj) Delegation call forPortableRemoteObject.unexportObject(Remote).
-
Method Details
-
exportObject
Delegation call forPortableRemoteObject.exportObject(Remote).- Parameters:
obj- object to export- Throws:
RemoteException- if the object cannot be exported
-
toStub
Delegation call forPortableRemoteObject.toStub(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(Remote).- Parameters:
obj- object to unremove- Throws:
NoSuchObjectException- if the object does not exist
-
narrow
Delegation call forPortableRemoteObject.narrow(Object, 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(Remote, Remote).- Parameters:
target- remote object to connectsource- starting object- Throws:
RemoteException- if an error occurred connecting
-