Class ShorthandMapConverter

java.lang.Object
org.springframework.cloud.fn.consumer.jdbc.ShorthandMapConverter
All Implemented Interfaces:
Converter<String,Map<String,String>>

public class ShorthandMapConverter extends Object implements Converter<String,Map<String,String>>
A Converter from String to Map that accepts csv key:value pairs (similar to what comes out of the box in Spring Core) but also simple key items, in which case the value is assumed to be equal to the key.

Additionally, commas and colons can be escaped by using a backslash, which is useful if said mappings are to be used for SpEL for example.

Author:
Eric Bottard, Artem Bilan