com.twistedmatrix.spread.pb
Class CopyableSerializer

java.lang.Object
  |
  +--com.twistedmatrix.spread.pb.CopyableSerializer
Direct Known Subclasses:
FailureSerializer

public abstract class CopyableSerializer
extends java.lang.Object

A class that jellies instances' state.


Constructor Summary
CopyableSerializer(ByteString copyableName)
          Create new Serializer that outputs jellied instances of the given type.
 
Method Summary
abstract  java.lang.Object getStateFor(Jelly.JellyEncoder encoder, java.lang.Object o)
          Return object's state as a sexp list.
protected  java.lang.Object jellyFor(Jelly.JellyEncoder encoder, java.lang.Object o)
          Jelly the object and return the resulting s-exp list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CopyableSerializer

public CopyableSerializer(ByteString copyableName)
Create new Serializer that outputs jellied instances of the given type.
Method Detail

jellyFor

protected java.lang.Object jellyFor(Jelly.JellyEncoder encoder,
                                    java.lang.Object o)
Jelly the object and return the resulting s-exp list.

getStateFor

public abstract java.lang.Object getStateFor(Jelly.JellyEncoder encoder,
                                             java.lang.Object o)
Return object's state as a sexp list. Override in subclasses.