org.springframework.batch.core.configuration.annotation
Class StepBuilderFactory

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

public class StepBuilderFactory
extends Object

Convenient factory for a StepBuilder which sets the JobRepository and PlatformTransactionManager automatically.

Author:
Dave Syer

Constructor Summary
StepBuilderFactory(JobRepository jobRepository, org.springframework.transaction.PlatformTransactionManager transactionManager)
           
 
Method Summary
 StepBuilder get(String name)
          Creates a step builder and initializes its job repository and transaction manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StepBuilderFactory

public StepBuilderFactory(JobRepository jobRepository,
                          org.springframework.transaction.PlatformTransactionManager transactionManager)
Method Detail

get

public StepBuilder get(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


Copyright © 2013 SpringSource. All Rights Reserved.