Class PayloadSerializingTransformer

All Implemented Interfaces:
Aware, BeanFactoryAware, BeanNameAware, InitializingBean, ApplicationContextAware, ExpressionCapable, NamedComponent, GenericTransformer<Message<?>,​Message<?>>, Transformer

public class PayloadSerializingTransformer
extends PayloadTypeConvertingTransformer<Object,​byte[]>
Transformer that serializes the inbound payload into a byte array by delegating to a Converter<Object, byte[]>. Default delegate is a SerializingConverter using Java serialization.

The payload instance must be Serializable if the default converter is used.

Mark Fisher, Gary Russell, Artem Bilan