|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.batch.core.step.job.DefaultJobParametersExtractor
public class DefaultJobParametersExtractor
Simple implementation of JobParametersExtractor which pulls
parameters with named keys out of the step execution context and the job
parameters of the surrounding job.
| Constructor Summary | |
|---|---|
DefaultJobParametersExtractor()
|
|
| Method Summary | |
|---|---|
JobParameters |
getJobParameters(Job job,
StepExecution stepExecution)
Extract job parameters from the step execution, for example from the execution context or other properties. |
void |
setKeys(java.lang.String[] keys)
The key names to pull out of the execution context or job parameters, if they exist. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultJobParametersExtractor()
| Method Detail |
|---|
public void setKeys(java.lang.String[] keys)
(long), (int), (double),
(date) or (string) will be assumed to refer to
values of the respective type and assigned to job parameters accordingly
(there will be an error if they are not of the right type). Without a
special suffix in that form a parameter is assumed to be of type String.
keys - the keys to set
public JobParameters getJobParameters(Job job,
StepExecution stepExecution)
JobParametersExtractor
getJobParameters in interface JobParametersExtractorjob - a JobstepExecution - a StepExecution
JobParametersJobParametersExtractor#getJobParameters(StepExecution)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||