Class XStreamExecutionContextStringSerializer
- java.lang.Object
- org.springframework.batch.core.repository.dao.XStreamExecutionContextStringSerializer
- All Implemented Interfaces:
ExecutionContextSerializer
,org.springframework.beans.factory.InitializingBean
,org.springframework.core.serializer.Deserializer<java.util.Map<java.lang.String,java.lang.Object>>
,org.springframework.core.serializer.Serializer<java.util.Map<java.lang.String,java.lang.Object>>
@Deprecated public class XStreamExecutionContextStringSerializer extends java.lang.Object implements ExecutionContextSerializer, org.springframework.beans.factory.InitializingBean
Deprecated.Due to the incompatibilities between current Jettison versions and XStream versions, this serializer is deprecated in favor ofJackson2ExecutionContextStringSerializer
Implementation that uses XStream and Jettison to provide serialization.- Since:
- 2.0
- Author:
- Thomas Risberg, Michael Minella, Mahmoud Ben Hassine
- See Also:
ExecutionContextSerializer
Constructor Summary
Constructors Constructor Description XStreamExecutionContextStringSerializer()
Deprecated.
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
afterPropertiesSet()
Deprecated.java.util.Map<java.lang.String,java.lang.Object>
deserialize(java.io.InputStream in)
Deprecated.Deserializes the supplied input stream into a new execution context.void
init()
Deprecated.void
serialize(java.util.Map<java.lang.String,java.lang.Object> context, java.io.OutputStream out)
Deprecated.Serializes the passed execution context to the supplied OutputStream.void
setHierarchicalStreamDriver(com.thoughtworks.xstream.io.HierarchicalStreamDriver hierarchicalStreamDriver)
Deprecated.void
setReflectionProvider(com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflectionProvider)
Deprecated.
Method Detail
setReflectionProvider
public void setReflectionProvider(com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflectionProvider)
Deprecated.
setHierarchicalStreamDriver
public void setHierarchicalStreamDriver(com.thoughtworks.xstream.io.HierarchicalStreamDriver hierarchicalStreamDriver)
Deprecated.
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception
Deprecated.- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
java.lang.Exception
init
public void init() throws java.lang.Exception
Deprecated.- Throws:
java.lang.Exception
serialize
public void serialize(java.util.Map<java.lang.String,java.lang.Object> context, java.io.OutputStream out) throws java.io.IOException
Deprecated.Serializes the passed execution context to the supplied OutputStream.- Specified by:
serialize
in interfaceorg.springframework.core.serializer.Serializer<java.util.Map<java.lang.String,java.lang.Object>>
- Parameters:
context
-Map
containing the context information.out
-OutputStream
where the serialized context information will be written.- Throws:
java.io.IOException
- See Also:
Serializer.serialize(Object, OutputStream)
deserialize
public java.util.Map<java.lang.String,java.lang.Object> deserialize(java.io.InputStream in) throws java.io.IOException
Deprecated.Deserializes the supplied input stream into a new execution context.- Specified by:
deserialize
in interfaceorg.springframework.core.serializer.Deserializer<java.util.Map<java.lang.String,java.lang.Object>>
- Parameters:
in
-InputStream
containing the information to be deserialized.- Returns:
- a reconstructed execution context
- Throws:
java.io.IOException
- See Also:
Deserializer.deserialize(InputStream)