public class JobLaunchRequestTransformer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
logger |
Constructor and Description |
---|
JobLaunchRequestTransformer(org.springframework.batch.core.configuration.JobRegistry jobRegistry,
java.lang.String jobName) |
Modifier and Type | Method and Description |
---|---|
void |
setDateFormat(java.text.DateFormat dateFormat)
Will set the
DateFormat on the underlying DefaultJobParametersConverter . |
void |
setDateFormatAsString(java.lang.String dateFormat) |
void |
setMakeParametersUnique(boolean makeParametersUnique)
If not set, this property defaults to
true . |
void |
setNumberFormat(java.text.NumberFormat numberFormat)
Setter for the
NumberFormat which is set on the underlying DefaultJobParametersConverter . |
void |
setNumberFormatAsString(java.lang.String numberFormat) |
org.springframework.batch.integration.launch.JobLaunchRequest |
toJobLaunchRequest(org.springframework.messaging.Message<?> message) |
public JobLaunchRequestTransformer(org.springframework.batch.core.configuration.JobRegistry jobRegistry, java.lang.String jobName)
jobName
- Must not be nullpublic void setDateFormat(java.text.DateFormat dateFormat)
DateFormat
on the underlying DefaultJobParametersConverter
. If not set explicitly
the DateFormat
will default to "yyyy/MM/dd".dateFormat
- Must not be nullpublic void setDateFormatAsString(java.lang.String dateFormat)
public void setNumberFormat(java.text.NumberFormat numberFormat)
NumberFormat
which is set on the underlying DefaultJobParametersConverter
. If not
set explicitly, defaults to NumberFormat.getInstance(Locale.US);
numberFormat
- Must not be null.public void setNumberFormatAsString(java.lang.String numberFormat)
public void setMakeParametersUnique(boolean makeParametersUnique)
true
.makeParametersUnique
- @Transformer public org.springframework.batch.integration.launch.JobLaunchRequest toJobLaunchRequest(org.springframework.messaging.Message<?> message)