public abstract class DirectionAwareSerializerAdapter<T> extends java.lang.Object implements DirectionAwareContextSerializer<T>
DirectionAwareContextSerializer to provide consistent behavior for callers who are
unaware of this interface and treat all serializers as ContextSerializerDirectionAwareContextSerializer.Direction| Constructor and Description |
|---|
DirectionAwareSerializerAdapter() |
| Modifier and Type | Method and Description |
|---|---|
T |
deserialize(java.lang.String serialized,
int version)
De-serializes the passed object
serialized. |
java.lang.String |
serialize(T toSerialize)
Serializes the passed object
toSerialize |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeserialize, serializegetVersionpublic java.lang.String serialize(T toSerialize) throws ContextSerializationException
ContextSerializertoSerializeserialize in interface ContextSerializer<T>toSerialize - The object to serialize. This object will never be nullnull
and hence the callee will throw a ContextSerializationException upon receiving a nullContextSerializationException - If the serialization failed.public T deserialize(java.lang.String serialized, int version) throws ContextSerializationException
ContextSerializerserialized.deserialize in interface ContextSerializer<T>serialized - The serialized object to de-serialize. This string will never be nullversion - The version of the serializer as returned by ContextSerializer.getVersion() used to
serialize the passed string.null
and hence the callee will throw a ContextSerializationException upon receiving a nullContextSerializationException - If the de-serialization failed.