java.lang.Object
org.springframework.batch.core.configuration.annotation.StepBuilderFactory

@Deprecated(since="5.0.0", forRemoval=true) public class StepBuilderFactory extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Deprecated as of v5.0 and scheduled for removal in v5.2 in favor of using the StepBuilder.
Convenient factory for a StepBuilder which sets the JobRepository automatically.
Author:
Dave Syer, Mahmoud Ben Hassine, Jinho Han
  • Constructor Details

    • StepBuilderFactory

      public StepBuilderFactory(JobRepository jobRepository)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Constructor for the StepBuilderFactory.
      Parameters:
      jobRepository - The JobRepository to be used by the builder factory. Must not be null.
  • Method Details

    • get

      public StepBuilder get(String name)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a step builder and initializes its job repository. Note that, if the builder is used to create a @Bean definition, the name of the step and the bean name might be different.
      Parameters:
      name - the name of the step
      Returns:
      a step builder