org.objectweb.carol.jndi.wrapping
Class UnicastJNDIReferenceWrapper
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.objectweb.carol.jndi.wrapping.UnicastJNDIReferenceWrapper
- All Implemented Interfaces:
- java.rmi.Remote, com.sun.jndi.rmi.registry.RemoteReference, java.io.Serializable
- public class UnicastJNDIReferenceWrapper
- extends java.rmi.server.UnicastRemoteObject
- implements java.rmi.Remote, com.sun.jndi.rmi.registry.RemoteReference
Class JNDIReferenceWrapper is the CAROL Remote Reference
implementation. This implementation make the reference wrapping to/from a
remote object
- Author:
- Florent Benoit
- See Also:
- Serialized Form
| Fields inherited from class java.rmi.server.RemoteObject |
ref |
|
Method Summary |
javax.naming.Reference |
getReference()
Get the Reference reference |
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
UnicastJNDIReferenceWrapper
public UnicastJNDIReferenceWrapper(javax.naming.Reference reference,
int objectPort)
throws java.rmi.RemoteException
- constructor, export this object
- Parameters:
reference - the Reference reference to wrapobjectPort - the port on which export objects
- Throws:
java.rmi.RemoteException - when super class try to export the object
getReference
public javax.naming.Reference getReference()
throws java.rmi.RemoteException
- Get the
Reference reference
- Specified by:
getReference in interface com.sun.jndi.rmi.registry.RemoteReference
- Returns:
- the
Reference reference
- Throws:
java.rmi.RemoteException - if the reference cannot be returned