org.jnp.interfaces
Class MarshalledValuePair
java.lang.Object
org.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
Constructor Summary |
MarshalledValuePair(java.lang.Object value)
Creates a new instance of MashalledValuePair |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
marshalledValue
public java.rmi.MarshalledObject marshalledValue
value
public transient java.lang.Object value
MarshalledValuePair
public MarshalledValuePair(java.lang.Object value)
throws java.io.IOException
- Creates a new instance of MashalledValuePair
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