|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.openorb.orb.rmi.PortableRemoteObjectDelegateImpl
public class PortableRemoteObjectDelegateImpl
This class provides a default implementation for javax.rmi.PortableRemoteObjectDelegate
| Constructor Summary | |
|---|---|
PortableRemoteObjectDelegateImpl()
|
|
| Method Summary | |
|---|---|
void |
connect(java.rmi.Remote target,
java.rmi.Remote source)
This method makes the remote object target ready for remote communication using the same communications runtime as source. |
void |
exportObject(java.rmi.Remote obj)
A call to this method with no objects exported creates a non-daemon thread wich keeps the java virtual machine alive until all exported objects have been unexported by calling unexportObject. |
java.lang.Object |
narrow(java.lang.Object obj,
java.lang.Class newClass)
This method takes an object reference or an object of an RMI/IDL abstract interface type and attemps to narrow it to conform to the given newClass RMI/IDL type. |
java.rmi.Remote |
toStub(java.rmi.Remote obj)
This method takes a server implementation object and returns a stubobject that can be used to access that server object. |
java.lang.Object |
uncheckedNarrow(java.lang.Object obj,
java.lang.Class newClass)
This method takes an object reference or an object of an RMI/IDL abstract interface type and attemps to narrow it to conform to the given newClass RMI/IDL type. |
void |
unexportObject(java.rmi.Remote obj)
This method is used to deregister a currently exported server object from the ORB runtimes, allowing the object to become available for garbage collection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PortableRemoteObjectDelegateImpl()
| Method Detail |
|---|
public void exportObject(java.rmi.Remote obj)
throws java.rmi.RemoteException
exportObject in interface javax.rmi.CORBA.PortableRemoteObjectDelegateobj - The remote object to export.
java.rmi.RemoteException - When obj is already exported or obj is a Stub.
public java.rmi.Remote toStub(java.rmi.Remote obj)
throws java.rmi.NoSuchObjectException
toStub in interface javax.rmi.CORBA.PortableRemoteObjectDelegateobj - The object to create a stub for.
java.rmi.NoSuchObjectException - When no Tie could be found for obj.
public void unexportObject(java.rmi.Remote obj)
throws java.rmi.NoSuchObjectException
unexportObject in interface javax.rmi.CORBA.PortableRemoteObjectDelegateobj - The object to unexport.
java.rmi.NoSuchObjectException - When no Tie could be found for obj.
public java.lang.Object narrow(java.lang.Object obj,
java.lang.Class newClass)
throws java.lang.ClassCastException
narrow in interface javax.rmi.CORBA.PortableRemoteObjectDelegateobj - The object to narrow.newClass - The type to which to narrow the object to.
java.lang.ClassCastException - When obj can't be narrowed.
public java.lang.Object uncheckedNarrow(java.lang.Object obj,
java.lang.Class newClass)
throws java.lang.ClassCastException
obj - The object to narrwo.newClass - The type to narrwo the object to.
java.lang.ClassCastException - When obj can't be narrowed.
public void connect(java.rmi.Remote target,
java.rmi.Remote source)
throws java.rmi.RemoteException
connect in interface javax.rmi.CORBA.PortableRemoteObjectDelegatetarget - The target object to connect to the source's ORB.source - The source object to take the ORB from.
java.rmi.RemoteException - When the source object is not exported or
the target is already exported.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||