Spring Integration

org.springframework.integration.transformer
Class PayloadDeserializingTransformer

java.lang.Object
  extended by org.springframework.integration.transformer.AbstractTransformer
      extended by org.springframework.integration.transformer.AbstractPayloadTransformer<T,U>
          extended by org.springframework.integration.transformer.PayloadTypeConvertingTransformer<byte[],Object>
              extended by org.springframework.integration.transformer.PayloadDeserializingTransformer
All Implemented Interfaces:
Transformer

public class PayloadDeserializingTransformer
extends PayloadTypeConvertingTransformer<byte[],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
Author:
Mark Fisher, Gary Russell

Field Summary
 
Fields inherited from class org.springframework.integration.transformer.PayloadTypeConvertingTransformer
converter
 
Constructor Summary
PayloadDeserializingTransformer()
           
 
Method Summary
 void setConverter(Converter<byte[],Object> converter)
          Sets the converter to be used for Serialization.
protected  Object transformPayload(byte[] payload)
           
 
Methods inherited from class org.springframework.integration.transformer.AbstractPayloadTransformer
doTransform
 
Methods inherited from class org.springframework.integration.transformer.AbstractTransformer
transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PayloadDeserializingTransformer

public PayloadDeserializingTransformer()
Method Detail

transformPayload

protected Object transformPayload(byte[] payload)
                           throws Exception
Overrides:
transformPayload in class PayloadTypeConvertingTransformer<byte[],Object>
Throws:
Exception

setConverter

public void setConverter(Converter<byte[],Object> converter)
Description copied from class: PayloadTypeConvertingTransformer
Sets the converter to be used for Serialization.

Overrides:
setConverter in class PayloadTypeConvertingTransformer<byte[],Object>
Parameters:
converter - The Converter.

Spring Integration

Copyright © 2010. All Rights Reserved.