com.sag.osami.contextstore.serialization
Interface ISerializationHandler

All Known Implementing Classes:
JSONSerializer

public interface ISerializationHandler

An implementing class of this service interface handles the serialization and deserialization of arbitrary (not necessarily Serializable) objects.


Method Summary
 java.lang.Object deserialize(java.lang.String[] sobj)
          Deserializes the given data.
 java.lang.String[] serialize(java.lang.Object obj)
          Serializes the given object.
 

Method Detail

serialize

java.lang.String[] serialize(java.lang.Object obj)
Serializes the given object. Should return null when obj is null. Must be thread-safe.

Parameters:
obj - object to be serialized

deserialize

java.lang.Object deserialize(java.lang.String[] sobj)
Deserializes the given data. Should return null when sobj is null. Must be thread-safe.

Parameters:
sobj - the serialized data as returned by the serialize(Object) method
Returns:
the deserialized object