|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.sgs.impl.util.WrappedSerializable<T>
T - type of object wrappedpublic final class WrappedSerializable<T>
A wrapper for an object that is serializable, but may or may not be
a ManagedObject. An instance of this serializable wrapper
contains a managed reference to the object specified during
construction as follows:
object implements ManagedObject, the
WrappedSerializable instance contains a ManagedReference directly to that object. object implements Serializable but does not implement ManagedObject, the
WrappedSerializable instance wraps the object in a
ManagedObject and contains a reference to the
wrapper.
When an instance of WrappedSerializable is no longer in
use, the remove method should be invoked on the
instance so that if a wrapper was created for the object,
the wrapper can be removed.
| Constructor Summary | |
|---|---|
WrappedSerializable(T object)
Constructs an instance of this class with the specified object. |
|
| Method Summary | |
|---|---|
T |
get()
Returns the object in this wrapper. |
void |
remove()
Marks this instance as removed, and if this instance contains a ManagedObject wrapper to the object specified
during construction, then removes the wrapper as well. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WrappedSerializable(T object)
Serializable and may
or may not be a ManagedObject.
object - an object
IllegalArgumentException - if the specified object does not
implement Serializable| Method Detail |
|---|
public T get()
IllegalStateException - if remove has
been invoked on this instancepublic void remove()
ManagedObject wrapper to the object specified
during construction, then removes the wrapper as well.
IllegalStateException - if remove has
been invoked on this instance
|
RedDwarf, Version 0.10.1 2010-03-14 10:56:12 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||