BATCH-2150: Added private constructor to StepExecution for use by Jackson deserialization
This commit is contained in:
@@ -102,6 +102,21 @@ public class StepExecution extends Entity {
|
||||
this.jobExecution = jobExecution;
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor that requires only a stepName. Intended only to be
|
||||
* used via serialization libraries to address the circular
|
||||
* reference between {@link JobExecution} and StepExecution.
|
||||
*
|
||||
* @param stepName the name of the executed step
|
||||
*/
|
||||
@SuppressWarnings("unused")
|
||||
private StepExecution(String stepName) {
|
||||
super();
|
||||
Assert.hasLength(stepName);
|
||||
this.stepName = stepName;
|
||||
this.jobExecution = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the {@link ExecutionContext} for this execution
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user