org.objectweb.jonas_lib.naming
Class JacORBPRODelegate

java.lang.Object
  extended by org.objectweb.carol.rmi.multi.JacORBPRODelegate
      extended by 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

Constructor Summary
JacORBPRODelegate()
           
 
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
 

Constructor Detail

JacORBPRODelegate

public JacORBPRODelegate()
Method Detail

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.