Class SpELItemKeyMapper<K,V>

java.lang.Object
org.springframework.batch.item.SpELItemKeyMapper<K,V>
All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<V,K>

public class SpELItemKeyMapper<K,V> extends Object implements org.springframework.core.convert.converter.Converter<V,K>
An implementation of Converter that uses SpEL to map a Value to a key
Since:
2.2
Author:
David Turanski
  • Constructor Details

    • SpELItemKeyMapper

      public SpELItemKeyMapper(String keyExpression)
  • Method Details

    • convert

      public K convert(V item)
      Specified by:
      convert in interface org.springframework.core.convert.converter.Converter<K,V>