JobLauncherApplicationRunner
@Deprecated public class JobLauncherCommandLineRunner extends JobLauncherApplicationRunner
ApplicationRunner
to launch
Spring Batch jobs. Runs all
jobs in the surrounding context by default. Can also be used to launch a specific job
by providing a jobName.DEFAULT_ORDER
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
JobLauncherCommandLineRunner(org.springframework.batch.core.launch.JobLauncher jobLauncher,
org.springframework.batch.core.explore.JobExplorer jobExplorer,
org.springframework.batch.core.repository.JobRepository jobRepository)
Deprecated.
Create a new
JobLauncherCommandLineRunner . |
execute, getOrder, launchJobFromProperties, run, run, setApplicationEventPublisher, setJobNames, setJobParametersConverter, setJobRegistry, setJobs, setOrder
public JobLauncherCommandLineRunner(org.springframework.batch.core.launch.JobLauncher jobLauncher, org.springframework.batch.core.explore.JobExplorer jobExplorer, org.springframework.batch.core.repository.JobRepository jobRepository)
JobLauncherCommandLineRunner
.jobLauncher
- to launch jobsjobExplorer
- to check the job repository for previous executionsjobRepository
- to check if a job instance exists with the given parameters
when running a job