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

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

public class JobBuilderFactory
extends Object

Convenient factory for a JobBuilder which sets the JobRepository automatically.

Author:
Dave Syer

Constructor Summary
JobBuilderFactory(JobRepository jobRepository)
           
 
Method Summary
 JobBuilder get(String name)
          Creates a job builder and initializes its job repository.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobBuilderFactory

public JobBuilderFactory(JobRepository jobRepository)
Method Detail

get

public JobBuilder get(String name)
Creates a job builder and initializes its job repository. Note that if the builder is used to create a @Bean definition then the name of the job and the bean name might be different.

Parameters:
name - the name of the job
Returns:
a job builder


Copyright © 2013 SpringSource. All Rights Reserved.