|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.batch.core.listener.StepExecutionListenerSupport
org.springframework.batch.core.listener.JobParameterExecutionContextCopyListener
public class JobParameterExecutionContextCopyListener
This class can be used to automatically copy items from the
JobParameters to the Step ExecutionContext. A list of
keys should be provided that correspond to the items in the Step
ExecutionContext that should be copied.
| Constructor Summary | |
|---|---|
JobParameterExecutionContextCopyListener()
|
|
| Method Summary | |
|---|---|
void |
beforeStep(StepExecution stepExecution)
Copy attributes from the JobParameters to the Step
ExecutionContext, if not already present. |
void |
setKeys(java.lang.String[] keys)
|
| Methods inherited from class org.springframework.batch.core.listener.StepExecutionListenerSupport |
|---|
afterStep |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JobParameterExecutionContextCopyListener()
| Method Detail |
|---|
public void setKeys(java.lang.String[] keys)
keys - A list of keys corresponding to items in the
JobParameters that should be copied.public void beforeStep(StepExecution stepExecution)
JobParameters to the Step
ExecutionContext, if not already present. The the key is already
present we assume that a restart is in operation and the previous value
is needed. If the provided keys are empty defaults to copy all keys in
the JobParameters.
beforeStep in interface StepExecutionListenerbeforeStep in class StepExecutionListenerSupport
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||