org.springframework.integration.transformer
Class PayloadDeserializingTransformer
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.transformer.AbstractTransformer
org.springframework.integration.transformer.AbstractPayloadTransformer<T,U>
org.springframework.integration.transformer.PayloadTypeConvertingTransformer<byte[],java.lang.Object>
org.springframework.integration.transformer.PayloadDeserializingTransformer
- All Implemented Interfaces:
- BeanFactoryAware, BeanNameAware, InitializingBean, NamedComponent, Transformer
public class PayloadDeserializingTransformer
- extends PayloadTypeConvertingTransformer<byte[],java.lang.Object>
Transformer that deserializes the inbound byte array payload to an object by delegating to a
Converter<byte[], Object>. Default delegate is a DeserializingConverter
using
Java serialization.
The byte array payload must be a result of equivalent serialization.
- Since:
- 1.0.1
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport |
afterPropertiesSet, getBeanFactory, getComponentName, getComponentType, getConversionService, getTaskScheduler, onInit, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PayloadDeserializingTransformer
public PayloadDeserializingTransformer()
setDeserializer
public void setDeserializer(Deserializer<java.lang.Object> deserializer)
transformPayload
protected java.lang.Object transformPayload(byte[] payload)
throws java.lang.Exception
- Overrides:
transformPayload
in class PayloadTypeConvertingTransformer<byte[],java.lang.Object>
- Throws:
java.lang.Exception