|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.erights.e.elib.serial.Replacer
|
+--org.erights.e.elib.serial.Serializer
Safe: A SerializationStream as specialized by a Serializer should represent no magic authority -- the serialized infomation it produces should only include information obtainable by unprivileged code all written in E.
Therefore, we declare the class Serializer to be safe.
Serializer is specializable from E by providing replaceFunc(ref) so that, on checkpointing for example, a live object may be replaced by a different object to be checkpointed as its representative.
The corresponding revived object is not simply this representative. It is
this representative as resolved by Unserializer.
| Field Summary | |
private OneArgFunc |
myReplaceFunc
|
static Serializer |
THE_ONE
Enabled: The canonical instance |
| Constructor Summary | |
Serializer(OneArgFunc replaceFunc)
Enabled: |
|
| Method Summary | |
Object |
substitute(Object ref)
Enabled: |
| Methods inherited from class org.erights.e.elib.serial.Replacer |
getSerializationStream, record, recordFile |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final Serializer THE_ONE
private final OneArgFunc myReplaceFunc
| Constructor Detail |
public Serializer(OneArgFunc replaceFunc)
replaceFunc - | Method Detail |
public Object substitute(Object ref)
substitute in class Replacerref - The object that needs to somehow get serialized.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||