Class StepBuilderFactory
java.lang.Object
org.springframework.batch.core.configuration.annotation.StepBuilderFactory
Convenient factory for a
StepBuilder
which sets the JobRepository
and
PlatformTransactionManager
automatically.- Author:
- Dave Syer
-
Constructor Summary
ConstructorDescriptionStepBuilderFactory
(JobRepository jobRepository, org.springframework.transaction.PlatformTransactionManager transactionManager) Constructor for theStepBuilderFactory
. -
Method Summary
Modifier and TypeMethodDescriptionCreates a step builder and initializes its job repository and transaction manager.
-
Constructor Details
-
StepBuilderFactory
public StepBuilderFactory(JobRepository jobRepository, org.springframework.transaction.PlatformTransactionManager transactionManager) Constructor for theStepBuilderFactory
.- Parameters:
jobRepository
- TheJobRepository
to be used by the builder factory.transactionManager
- ThePlatformTransactionManager
to be used by the builder factory.
-
-
Method Details
-
get
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
-