Class RemotePartitioningWorkerStepBuilderFactory
- java.lang.Object
- org.springframework.batch.integration.partition.RemotePartitioningWorkerStepBuilderFactory
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanFactoryAware
public class RemotePartitioningWorkerStepBuilderFactory extends java.lang.Object implements org.springframework.beans.factory.BeanFactoryAware
Convenient factory for aRemotePartitioningWorkerStepBuilder
which sets theJobRepository
,JobExplorer
,BeanFactory
andPlatformTransactionManager
automatically.- Since:
- 4.1
- Author:
- Mahmoud Ben Hassine
Constructor Summary
Constructors Constructor Description RemotePartitioningWorkerStepBuilderFactory(JobRepository jobRepository, JobExplorer jobExplorer, org.springframework.transaction.PlatformTransactionManager transactionManager)
Create a newRemotePartitioningWorkerStepBuilderFactory
.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RemotePartitioningWorkerStepBuilder
get(java.lang.String name)
Creates aRemotePartitioningWorkerStepBuilder
and initializes its job repository, job explorer, bean factory and transaction manager.void
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
Constructor Detail
RemotePartitioningWorkerStepBuilderFactory
public RemotePartitioningWorkerStepBuilderFactory(JobRepository jobRepository, JobExplorer jobExplorer, org.springframework.transaction.PlatformTransactionManager transactionManager)
Create a newRemotePartitioningWorkerStepBuilderFactory
.- Parameters:
jobRepository
- the job repository to usejobExplorer
- the job explorer to usetransactionManager
- the transaction manager to use
Method Detail
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
- Specified by:
setBeanFactory
in interfaceorg.springframework.beans.factory.BeanFactoryAware
- Throws:
org.springframework.beans.BeansException
get
public RemotePartitioningWorkerStepBuilder get(java.lang.String name)
Creates aRemotePartitioningWorkerStepBuilder
and initializes its job repository, job explorer, bean factory and transaction manager.- Parameters:
name
- the name of the step- Returns:
- a
RemotePartitioningWorkerStepBuilder