@Component public class JobLauncherCommandLineRunner extends Object implements CommandLineRunner, org.springframework.context.ApplicationEventPublisherAware
CommandLineRunner
to launch
Spring Batch jobs.Constructor and Description |
---|
JobLauncherCommandLineRunner() |
Modifier and Type | Method and Description |
---|---|
protected void |
launchJobFromProperties(Properties properties) |
void |
run(String... args)
Callback used to run the bean.
|
void |
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher publisher) |
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher publisher)
setApplicationEventPublisher
in interface org.springframework.context.ApplicationEventPublisherAware
public void run(String... args) throws JobExecutionException
CommandLineRunner
run
in interface CommandLineRunner
args
- incoming main method argumentsJobExecutionException
protected void launchJobFromProperties(Properties properties) throws JobExecutionException
JobExecutionException
Copyright © 2013. All rights reserved.