Example usage for org.springframework.integration.transformer GenericTransformer GenericTransformer

List of usage examples for org.springframework.integration.transformer GenericTransformer GenericTransformer

Introduction

In this page you can find the example usage for org.springframework.integration.transformer GenericTransformer GenericTransformer.

Prototype

GenericTransformer

Source Link

Usage

From source file:com.acme.ModuleConfiguration.java

@Bean
GenericTransformer<String, String> transformer() {
    return new GenericTransformer<String, String>() {
        @Override/*from   www . j av a2s  .c  o  m*/
        public String transform(String payload) {
            return prefix + payload + suffix;
        }
    };
}

From source file:com.acme.ModuleConfiguration.java

@Bean
GenericTransformer<String, String> transformer() {
    return new GenericTransformer<String, String>() {
        @Override/*from  ww  w .jav  a2s. c  o m*/
        public String transform(String payload) {
            return prefix + payload;
        }
    };
}