org.jnp.interfaces
Class MarshalledValuePair

java.lang.Object
  extended byorg.jnp.interfaces.MarshalledValuePair
All Implemented Interfaces:
java.io.Serializable

public class MarshalledValuePair
extends java.lang.Object
implements java.io.Serializable

An encapsulation of a JNDI binding as both the raw object and its MarshalledObject form. When accessed in the same VM as the JNP server, the raw object reference is used to avoid deserialization.

See Also:
Serialized Form

Field Summary
 java.rmi.MarshalledObject marshalledValue
           
 java.lang.Object value
           
 
Constructor Summary
MarshalledValuePair(java.lang.Object value)
          Creates a new instance of MashalledValuePair
 
Method Summary
 java.lang.Object get()
           
static boolean getEnableCallByReference()
          Get the lookp call by reference flag.
static void setEnableCallByReference(boolean flag)
          Set the lookp call by reference flag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

marshalledValue

public java.rmi.MarshalledObject marshalledValue

value

public transient java.lang.Object value
Constructor Detail

MarshalledValuePair

public MarshalledValuePair(java.lang.Object value)
                    throws java.io.IOException
Creates a new instance of MashalledValuePair

Method Detail

getEnableCallByReference

public static boolean getEnableCallByReference()
Get the lookp call by reference flag.

Returns:
false if all lookups are unmarshalled using the caller's TCL, true if in VM lookups return the value by reference.

setEnableCallByReference

public static void setEnableCallByReference(boolean flag)
Set the lookp call by reference flag.

Parameters:
flag - - false if all lookups are unmarshalled using the caller's TCL, true if in VM lookups return the value by reference.

get

public java.lang.Object get()
                     throws java.lang.ClassNotFoundException,
                            java.io.IOException
Throws:
java.lang.ClassNotFoundException
java.io.IOException