Search in sources :

Example 1 with ObjectToMapTransformer

use of org.springframework.integration.transformer.ObjectToMapTransformer in project spring-integration by spring-projects.

the class Transformers method toMap.

public static ObjectToMapTransformer toMap(JsonObjectMapper<?, ?> jsonObjectMapper, boolean shouldFlattenKeys) {
    ObjectToMapTransformer transformer = new ObjectToMapTransformer(jsonObjectMapper);
    transformer.setShouldFlattenKeys(shouldFlattenKeys);
    return transformer;
}
Also used : ObjectToMapTransformer(org.springframework.integration.transformer.ObjectToMapTransformer)

Example 2 with ObjectToMapTransformer

use of org.springframework.integration.transformer.ObjectToMapTransformer in project spring-integration by spring-projects.

the class Transformers method toMap.

public static ObjectToMapTransformer toMap(boolean shouldFlattenKeys) {
    ObjectToMapTransformer transformer = new ObjectToMapTransformer();
    transformer.setShouldFlattenKeys(shouldFlattenKeys);
    return transformer;
}
Also used : ObjectToMapTransformer(org.springframework.integration.transformer.ObjectToMapTransformer)

Aggregations

ObjectToMapTransformer (org.springframework.integration.transformer.ObjectToMapTransformer)2