org.ow2.jonas.registry.carol.delegate
Class JacORBPRODelegate
java.lang.Object
org.ow2.carol.rmi.multi.JacORBPRODelegate
org.ow2.jonas.registry.carol.delegate.JacORBPRODelegate
- All Implemented Interfaces:
- PortableRemoteObjectDelegate
public class JacORBPRODelegate
- extends org.ow2.carol.rmi.multi.JacORBPRODelegate
Use EJB context classloader when possible
- Author:
- Florent Benoit
Method Summary |
void |
exportObject(Remote obj)
Makes a server object ready to receive remote calls. |
Object |
narrow(Object narrowFrom,
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.ow2.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(Remote obj)
throws 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 PortableRemoteObjectDelegate
- Overrides:
exportObject
in class org.ow2.carol.rmi.multi.JacORBPRODelegate
- Parameters:
obj
- the server object to export.
- Throws:
RemoteException
- if export fails.
narrow
public Object narrow(Object narrowFrom,
Class narrowTo)
throws 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 PortableRemoteObjectDelegate
- Overrides:
narrow
in class org.ow2.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:
ClassCastException
- if narrowFrom cannot be cast to narrowTo.
Copyright © 2010 OW2 Consortium. All Rights Reserved.