public class MultiPRODelegate
extends java.lang.Object
implements javax.rmi.CORBA.PortableRemoteObjectDelegate
MultiPRODelegate
Constructor and Description |
---|
MultiPRODelegate()
constructor for this PortableRemoteObjectDelegateProxy
|
Modifier and Type | Method and Description |
---|---|
void |
connect(java.rmi.Remote target,
java.rmi.Remote source)
Makes a Remote object ready for remote communication.
|
void |
exportObject(java.rmi.Remote obj)
Makes a server object ready to receive remote calls.
|
java.lang.Object |
narrow(java.lang.Object narrowFrom,
java.lang.Class narrowTo)
Checks to ensure that an object of a remote or abstract interface type
can be cast to a desired type.
|
java.rmi.Remote |
toStub(java.rmi.Remote obj)
Returns a stub for the given server object.
|
void |
unexportObject(java.rmi.Remote obj)
Deregisters a server object from the runtime, allowing the object to
become available for garbage collection.
|
public MultiPRODelegate()
public void exportObject(java.rmi.Remote obj) throws java.rmi.RemoteException
exportObject
in interface javax.rmi.CORBA.PortableRemoteObjectDelegate
obj
- the server object to export.java.rmi.RemoteException
- if export fails.public void unexportObject(java.rmi.Remote obj) throws java.rmi.NoSuchObjectException
unexportObject
in interface javax.rmi.CORBA.PortableRemoteObjectDelegate
obj
- the object to unexport.java.rmi.NoSuchObjectException
- if the remote object is not currently
exported.public void connect(java.rmi.Remote target, java.rmi.Remote source) throws java.rmi.RemoteException
connect
in interface javax.rmi.CORBA.PortableRemoteObjectDelegate
target
- the object to connect.source
- a previously connected object.java.rmi.RemoteException
- if source
is not connected or if
target
is already connected to a different ORB
than source
.public java.lang.Object narrow(java.lang.Object narrowFrom, java.lang.Class narrowTo) throws java.lang.ClassCastException
narrow
in interface javax.rmi.CORBA.PortableRemoteObjectDelegate
narrowFrom
- the object to check.narrowTo
- the desired type.java.lang.ClassCastException
- if narrowFrom cannot be cast to narrowTo.public java.rmi.Remote toStub(java.rmi.Remote obj) throws java.rmi.NoSuchObjectException
toStub
in interface javax.rmi.CORBA.PortableRemoteObjectDelegate
obj
- the server object for which a stub is required. Must either be
a subclass of PortableRemoteObject or have been previously the
target of a call to exportObject(java.rmi.Remote)
.java.rmi.NoSuchObjectException
- if a stub cannot be located for the
given server object.