org.erights.e.extern.persist
Class PersistenceReviver

java.lang.Object
  |
  +--org.erights.e.elib.serial.Reviver
        |
        +--org.erights.e.extern.persist.PersistenceReviver

public class PersistenceReviver
extends Reviver

Untamed: Used to specialize the UnserializationStream for reviving from persistent state.

Author:
Mark S. Miller

Field Summary
private  boolean myIsStrict
           
private  ConstMap mySuture
           
 
Constructor Summary
PersistenceReviver(ConstMap suture)
          Enabled: isStrict defaults to true.
PersistenceReviver(ConstMap suture, boolean isStrict)
          Enabled:
 
Method Summary
 Object substitute(Object ref)
          Enabled: Resolves the suture, but otherwise just returns ref.
 
Methods inherited from class org.erights.e.elib.serial.Reviver
getUnserializationStream, play, playFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mySuture

private final ConstMap mySuture

myIsStrict

private final boolean myIsStrict
Constructor Detail

PersistenceReviver

public PersistenceReviver(ConstMap suture)
Enabled: isStrict defaults to true.


PersistenceReviver

public PersistenceReviver(ConstMap suture,
                          boolean isStrict)
Enabled:

Method Detail

substitute

public Object substitute(Object ref)
Enabled: Resolves the suture, but otherwise just returns ref.

Specified by:
substitute in class Reviver
Parameters:
ref - The object that was reconstructed from the serialization stream.
Returns:
The object to return in its stead -- as its revival.


comments?