类 XStreamExecutionContextStringSerializer
- java.lang.Object
- org.springframework.batch.core.repository.dao.XStreamExecutionContextStringSerializer
- 所有已实现的接口:
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
已过时。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.- 从以下版本开始:
- 2.0
- 作者:
- Thomas Risberg, Michael Minella, Mahmoud Ben Hassine
- 另请参阅:
ExecutionContextSerializer
构造器概要
构造器 构造器 说明 XStreamExecutionContextStringSerializer()
已过时。
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 void
afterPropertiesSet()
已过时。java.util.Map<java.lang.String,java.lang.Object>
deserialize(java.io.InputStream in)
已过时。Deserializes the supplied input stream into a new execution context.void
init()
已过时。void
serialize(java.util.Map<java.lang.String,java.lang.Object> context, java.io.OutputStream out)
已过时。Serializes the passed execution context to the supplied OutputStream.void
setHierarchicalStreamDriver(com.thoughtworks.xstream.io.HierarchicalStreamDriver hierarchicalStreamDriver)
已过时。void
setReflectionProvider(com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflectionProvider)
已过时。
构造器详细资料
XStreamExecutionContextStringSerializer
public XStreamExecutionContextStringSerializer()
已过时。
方法详细资料
setReflectionProvider
public void setReflectionProvider(com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflectionProvider)
已过时。
setHierarchicalStreamDriver
public void setHierarchicalStreamDriver(com.thoughtworks.xstream.io.HierarchicalStreamDriver hierarchicalStreamDriver)
已过时。
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception
已过时。- 指定者:
afterPropertiesSet
在接口中org.springframework.beans.factory.InitializingBean
- 抛出:
java.lang.Exception
init
public void init() throws java.lang.Exception
已过时。- 抛出:
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
已过时。Serializes the passed execution context to the supplied OutputStream.- 指定者:
serialize
在接口中org.springframework.core.serializer.Serializer<java.util.Map<java.lang.String,java.lang.Object>>
- 参数:
context
-Map
containing the context information.out
-OutputStream
where the serialized context information will be written.- 抛出:
java.io.IOException
- 另请参阅:
Serializer.serialize(Object, OutputStream)
deserialize
public java.util.Map<java.lang.String,java.lang.Object> deserialize(java.io.InputStream in) throws java.io.IOException
已过时。Deserializes the supplied input stream into a new execution context.- 指定者:
deserialize
在接口中org.springframework.core.serializer.Deserializer<java.util.Map<java.lang.String,java.lang.Object>>
- 参数:
in
-InputStream
containing the information to be deserialized.- 返回:
- a reconstructed execution context
- 抛出:
java.io.IOException
- 另请参阅:
Deserializer.deserialize(InputStream)