org.objectweb.jonas_lib.naming
Class JacORBPRODelegate
java.lang.Object
org.objectweb.carol.rmi.multi.JacORBPRODelegate
org.objectweb.jonas_lib.naming.JacORBPRODelegate
- All Implemented Interfaces:
- javax.rmi.CORBA.PortableRemoteObjectDelegate
public class JacORBPRODelegate
- extends org.objectweb.carol.rmi.multi.JacORBPRODelegate
Use EJB context classloader when possible
- Author:
- Florent Benoit
Method Summary |
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. |
Methods inherited from class org.objectweb.carol.rmi.multi.JacORBPRODelegate |
connect, toStub, unexportObject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JacORBPRODelegate
public JacORBPRODelegate()
exportObject
public void exportObject(java.rmi.Remote obj)
throws java.rmi.RemoteException
- Makes a server object ready to receive remote calls. Note that subclasses
of PortableRemoteObject do not need to call this method, as it is called
by the constructor.
- Specified by:
exportObject
in interface javax.rmi.CORBA.PortableRemoteObjectDelegate
- Overrides:
exportObject
in class org.objectweb.carol.rmi.multi.JacORBPRODelegate
- Parameters:
obj
- the server object to export.
- Throws:
java.rmi.RemoteException
- if export fails.
narrow
public java.lang.Object narrow(java.lang.Object narrowFrom,
java.lang.Class narrowTo)
throws java.lang.ClassCastException
- Checks to ensure that an object of a remote or abstract interface type
can be cast to a desired type.
- Specified by:
narrow
in interface javax.rmi.CORBA.PortableRemoteObjectDelegate
- Overrides:
narrow
in class org.objectweb.carol.rmi.multi.JacORBPRODelegate
- Parameters:
narrowFrom
- the object to check.narrowTo
- the desired type.
- Returns:
- an object which can be cast to the desired type.
- Throws:
java.lang.ClassCastException
- if narrowFrom cannot be cast to narrowTo.