Package javax.rmi.CORBA
Interface PortableRemoteObjectDelegate
-
- All Known Implementing Classes:
PortableRemoteObject
public interface PortableRemoteObjectDelegateSupports delegation for method implementations inPortableRemoteObject. The delegate is a singleton instance of a class that implements this interface and provides a replacement implementation for all the methods ofjavax.rmi.PortableRemoteObject. Delegates are enabled by providing the delegate's class name as the value of thejavax.rmi.CORBA.PortableRemoteObjectClasssystem property.- See Also:
PortableRemoteObject
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconnect(java.rmi.Remote target, java.rmi.Remote source)Delegation call forPortableRemoteObject.connect(java.rmi.Remote, java.rmi.Remote).voidexportObject(java.rmi.Remote obj)Delegation call forPortableRemoteObject.exportObject(java.rmi.Remote).java.lang.Objectnarrow(java.lang.Object narrowFrom, java.lang.Class narrowTo)Delegation call forPortableRemoteObject.narrow(java.lang.Object, java.lang.Class).java.rmi.RemotetoStub(java.rmi.Remote obj)Delegation call forPortableRemoteObject.toStub(java.rmi.Remote).voidunexportObject(java.rmi.Remote obj)Delegation call forPortableRemoteObject.unexportObject(java.rmi.Remote).
-
-
-
Method Detail
-
exportObject
void exportObject(java.rmi.Remote obj) throws java.rmi.RemoteExceptionDelegation call forPortableRemoteObject.exportObject(java.rmi.Remote).- Parameters:
obj- object to export- Throws:
java.rmi.RemoteException- if the object cannot be exported
-
toStub
java.rmi.Remote toStub(java.rmi.Remote obj) throws java.rmi.NoSuchObjectExceptionDelegation call forPortableRemoteObject.toStub(java.rmi.Remote).- Parameters:
obj- remote to convert to stub- Returns:
- stub of the remote
- Throws:
java.rmi.NoSuchObjectException- if the object does not exist
-
unexportObject
void unexportObject(java.rmi.Remote obj) throws java.rmi.NoSuchObjectExceptionDelegation call forPortableRemoteObject.unexportObject(java.rmi.Remote).- Parameters:
obj- object to unremove- Throws:
java.rmi.NoSuchObjectException- if the object does not exist
-
narrow
java.lang.Object narrow(java.lang.Object narrowFrom, java.lang.Class narrowTo) throws java.lang.ClassCastExceptionDelegation 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:
java.lang.ClassCastException- if the object cannot be narrowed
-
connect
void connect(java.rmi.Remote target, java.rmi.Remote source) throws java.rmi.RemoteExceptionDelegation call forPortableRemoteObject.connect(java.rmi.Remote, java.rmi.Remote).- Parameters:
target- remote object to connectsource- starting object- Throws:
java.rmi.RemoteException- if an error occurred connecting
-
-