org.springframework.integration.transformer
Class PayloadDeserializingTransformer

java.lang.Object
  extended by org.springframework.integration.context.IntegrationObjectSupport
      extended by org.springframework.integration.transformer.AbstractTransformer
          extended by org.springframework.integration.transformer.AbstractPayloadTransformer<T,U>
              extended by org.springframework.integration.transformer.PayloadTypeConvertingTransformer<byte[],java.lang.Object>
                  extended by 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

Field Summary
 
Fields inherited from class org.springframework.integration.transformer.PayloadTypeConvertingTransformer
converter
 
Fields inherited from class org.springframework.integration.context.IntegrationObjectSupport
logger
 
Constructor Summary
PayloadDeserializingTransformer()
           
 
Method Summary
 void setDeserializer(Deserializer<java.lang.Object> deserializer)
           
protected  java.lang.Object transformPayload(byte[] payload)
           
 
Methods inherited from class org.springframework.integration.transformer.PayloadTypeConvertingTransformer
setConverter
 
Methods inherited from class org.springframework.integration.transformer.AbstractPayloadTransformer
doTransform
 
Methods inherited from class org.springframework.integration.transformer.AbstractTransformer
transform
 
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
 

Constructor Detail

PayloadDeserializingTransformer

public PayloadDeserializingTransformer()
Method Detail

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