org.objectweb.carol.jndi.wrapping
Class JNDIResourceWrapper

java.lang.Object
  extended by org.objectweb.carol.jndi.wrapping.JNDIResourceWrapper
All Implemented Interfaces:
java.rmi.Remote, JNDIRemoteResource

public class JNDIResourceWrapper
extends java.lang.Object
implements JNDIRemoteResource

Class JNDIResourceWrapper is the CAROL Remote Resource implementation. This implementation make the serializable resource wrapping to/from a remote object

Author:
Guillaume Riviere (Guillaume.Riviere@inrialpes.fr)

Constructor Summary
JNDIResourceWrapper(java.io.Serializable resource)
          constructor, export this object
 
Method Summary
 java.io.Serializable getResource()
          Get the Serializable resource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JNDIResourceWrapper

public JNDIResourceWrapper(java.io.Serializable resource)
constructor, export this object

Parameters:
resource - the Serializable resource to wrap
Method Detail

getResource

public java.io.Serializable getResource()
                                 throws java.rmi.RemoteException
Get the Serializable resource

Specified by:
getResource in interface JNDIRemoteResource
Returns:
the Serializable resource
Throws:
java.rmi.RemoteException - if the resource cannot be returned