Class DefaultJobParametersConverter

java.lang.Object
org.springframework.batch.core.converter.DefaultJobParametersConverter
All Implemented Interfaces:
JobParametersConverter

public class DefaultJobParametersConverter extends Object implements JobParametersConverter
Converter for JobParameters instances that uses a simple naming convention for property keys. Key names that are prefixed with a - are considered non-identifying and do not contribute to the identity of a JobInstance. Key names ending with "(<type>)" (where type is one of string, date, long) are converted to the corresponding type. The default type is string. Consider the following example:
 schedule.date(date)=2007/12/11
 department.id(long)=2345
 
The literal values are converted to the correct type by using the default Spring strategies, augmented if necessary by any custom editors that have been provided.
If you need to be able to parse and format local-specific dates and numbers, you can inject formatters (setDateFormat(DateFormat) and setNumberFormat(NumberFormat)).
Author:
Dave Syer, Michael Minella, Mahmoud Ben Hassine