Class PayloadSerializingTransformer

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

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

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

A custom Serializer can be provided via setSerializer(Serializer).

Since:
1.0.1
Author:
Mark Fisher, Gary Russell, Artem Bilan