org.springframework.batch.integration.partition.BeanFactoryStepLocator Java Examples

The following examples show how to use org.springframework.batch.integration.partition.BeanFactoryStepLocator. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JobConfiguration.java    From CogStack-Pipeline with Apache License 2.0 5 votes vote down vote up
@Bean
public StepExecutionRequestHandler stepExecutionRequestHandler(
        JobExplorer jobExplorer, BeanFactoryStepLocator stepLocator){
    StepExecutionRequestHandler handler = new StepExecutionRequestHandler();
    handler.setJobExplorer(jobExplorer);
    handler.setStepLocator(stepLocator);
    return handler;
}
 
Example #2
Source File: DeployerStepExecutionHandler.java    From spring-cloud-task with Apache License 2.0 5 votes vote down vote up
public DeployerStepExecutionHandler(BeanFactory beanFactory, JobExplorer jobExplorer,
		JobRepository jobRepository) {
	Assert.notNull(beanFactory, "A beanFactory is required");
	Assert.notNull(jobExplorer, "A jobExplorer is required");
	Assert.notNull(jobRepository, "A jobRepository is required");

	this.stepLocator = new BeanFactoryStepLocator();
	((BeanFactoryStepLocator) this.stepLocator).setBeanFactory(beanFactory);

	this.jobExplorer = jobExplorer;
	this.jobRepository = jobRepository;
}
 
Example #3
Source File: JobConfiguration.java    From CogStack-Pipeline with Apache License 2.0 4 votes vote down vote up
@Bean
public BeanFactoryStepLocator stepLocator(){
    return new BeanFactoryStepLocator();
}
 
Example #4
Source File: EmployeeJobConfigSlave.java    From batchers with Apache License 2.0 4 votes vote down vote up
@Bean
public BeanFactoryStepLocator stepLocator() {
    return new BeanFactoryStepLocator();
}