Package com.sun.jini.mahalo
Class StorableObject
java.lang.Object
com.sun.jini.mahalo.StorableObject
- All Implemented Interfaces:
Serializable
This class holds a
MarshalledObject that can be stored persistently. When you
invoke get, the object is deserialized, its value cached in this object, and then
returned. Subsequent calls to get return that value. This lets you store the object
and hold it around, waiting until it is actually deserializable, since it may not be at any given
time due to various factors, such as the codebase being unavailable.- Author:
- Sun Microsystems, Inc.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStorableObject(Object obj) Create aStorableObjectthat will holdobjin aMarshalledObject. -
Method Summary
-
Constructor Details
-
StorableObject
Create aStorableObjectthat will holdobjin aMarshalledObject.- Throws:
RemoteException
-
-
Method Details
-
hashCode
public int hashCode()Return thehashCodeof theMarshalledObject. -
equals
-
get
Return the Remote reference. Deserialize the object if we don't already have an actual reference in hand.- Throws:
RemoteException- Problems re-establishing connection with remote object
-