Class StepBuilderFactory
- java.lang.Object
- org.springframework.batch.core.configuration.annotation.StepBuilderFactory
public class StepBuilderFactory extends java.lang.Object
Convenient factory for aStepBuilder
which sets theJobRepository
andPlatformTransactionManager
automatically.- Author:
- Dave Syer
Constructor Summary
Constructors Constructor Description StepBuilderFactory(JobRepository jobRepository, org.springframework.transaction.PlatformTransactionManager transactionManager)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StepBuilder
get(java.lang.String name)
Creates a step builder and initializes its job repository and transaction manager.
Constructor Detail
StepBuilderFactory
public StepBuilderFactory(JobRepository jobRepository, org.springframework.transaction.PlatformTransactionManager transactionManager)
Method Detail
get
public StepBuilder get(java.lang.String name)
Creates a step builder and initializes its job repository and transaction manager. Note that if the builder is used to create a @Bean definition then the name of the step and the bean name might be different.- Parameters:
name
- the name of the step- Returns:
- a step builder