org.springframework.batch.core.repository.dao
Interface ExecutionContextStringSerializer

All Known Implementing Classes:
XStreamExecutionContextStringSerializer

public interface ExecutionContextStringSerializer

Interface defining serialization support for execution context Map in the form of a String.

Since:
2.0
Author:
Thomas Risberg

Method Summary
 Map<String,Object> deserialize(String context)
          De-serialize the context from a string representation
 String serialize(Map<String,Object> context)
          Serialize the context to a string representation
 

Method Detail

serialize

String serialize(Map<String,Object> context)
Serialize the context to a string representation

Parameters:
context - the object that should be serialized
Returns:
the serialization string

deserialize

Map<String,Object> deserialize(String context)
De-serialize the context from a string representation

Parameters:
context - the serialization string that should be de-serialized
Returns:
the de-serialized context map


Copyright © 2009 SpringSource. All Rights Reserved.