}
return bean;
}
private void postProcessJob(Object bean, String beanName) {
FlowJob job = (FlowJob) bean;
job.setName(this.groupName);
// Add the job name, job parameters incrementer and job restartable flag to {@link DistributedJobLocator}
// Since, the Spring batch doesn't have persistent JobRegistry, the {@link DistributedJobLocator}
// acts as the store to have jobName , job parameter incrementer and restartable flag to be
// used by {@link DistributedJobService}
jobLocator.addJob(this.groupName, (job.getJobParametersIncrementer() != null) ? true : false,
job.isRestartable());
jobLocator.addStepNames(this.groupName, job.getStepNames());
super.postProcessAfterInitialization(bean, beanName);
}