org.objectweb.carol.jndi.wrapping
Class UnicastJNDIReferenceWrapper

java.lang.Object
  extended byjava.rmi.server.RemoteObject
      extended byjava.rmi.server.RemoteServer
          extended byjava.rmi.server.UnicastRemoteObject
              extended byorg.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

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
UnicastJNDIReferenceWrapper(javax.naming.Reference reference, int objectPort)
          constructor, export this object
 
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
 

Constructor Detail

UnicastJNDIReferenceWrapper

public UnicastJNDIReferenceWrapper(javax.naming.Reference reference,
                                   int objectPort)
                            throws java.rmi.RemoteException
constructor, export this object

Parameters:
reference - the Reference reference to wrap
objectPort - the port on which export objects
Throws:
java.rmi.RemoteException - when super class try to export the object
Method Detail

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