Class DecodingTransformer<T>

Type Parameters:
T - the payload type.
All Implemented Interfaces:
Aware, BeanFactoryAware, BeanNameAware, InitializingBean, ApplicationContextAware, ExpressionCapable, NamedComponent, GenericTransformer<Message<?>,​Message<?>>, Transformer

public class DecodingTransformer<T>
extends AbstractTransformer
AbstractPayloadTransformer that delegates to a codec to decode the payload from a byte[].
Since:
4.2
Author:
Gary Russell
  • Constructor Details

    • DecodingTransformer

      public DecodingTransformer​(Codec codec, Class<T> type)
      Construct an instance to use the supplied codec to decode to the supplied type.
      Parameters:
      codec - the codec.
      type - the type.
    • DecodingTransformer

      public DecodingTransformer​(Codec codec, Expression typeExpression)
      Construct an instance to use the supplied codec to decode to the supplied type.
      Parameters:
      codec - the codec.
      typeExpression - an expression that evaluates to a Class.
  • Method Details