Skip to content

Commit

Permalink
Override methods from SimpleJobLauncher in TaskExecutorJobLauncher
Browse files Browse the repository at this point in the history
This commit is to prevent usage of deprecated APIs
inherited from SimpleJobLauncher
  • Loading branch information
fmbenhassine committed Jul 19, 2022
1 parent 08e0481 commit 310c280
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,25 @@
*/
public class TaskExecutorJobLauncher extends SimpleJobLauncher {

@Override
public JobExecution run(Job job, JobParameters jobParameters) throws JobExecutionAlreadyRunningException,
JobRestartException, JobInstanceAlreadyCompleteException, JobParametersInvalidException {
return super.run(job, jobParameters);
}

@Override
public void setJobRepository(JobRepository jobRepository) {
super.setJobRepository(jobRepository);
}

@Override
public void setTaskExecutor(TaskExecutor taskExecutor) {
super.setTaskExecutor(taskExecutor);
}

@Override
public void afterPropertiesSet() throws Exception {
super.afterPropertiesSet();
}

}

0 comments on commit 310c280

Please sign in to comment.