Package org.springframework.batch.core.job.builder

Examples of org.springframework.batch.core.job.builder.SimpleJobBuilder.build()


    private StepBuilderFactory steps;

    @Bean
    public Job beansConfigurerJob() throws Exception {
      SimpleJobBuilder builder = jobs.get("beans").start(step1());
      return builder.build();
    }

    @Bean
    protected Step step1() throws Exception {
      return steps.get("step1").tasklet(new Tasklet() {
View Full Code Here


    private StepBuilderFactory steps;

    @Bean
    public Job testJob() throws Exception {
      SimpleJobBuilder builder = jobs.get("test").start(step1()).next(step2());
      return builder.build();
    }

    @Bean
    protected Step step1() throws Exception {
      return steps.get("step1").tasklet(tasklet()).build();
View Full Code Here

    private StepBuilderFactory steps;

    @Bean
    public Job vanillaJob() throws Exception {
      SimpleJobBuilder builder = jobs.get("vanilla").start(step3());
      return builder.build();
    }

    @Bean
    protected Step step3() throws Exception {
      return steps.get("step3").tasklet(new Tasklet() {
View Full Code Here

    private StepBuilderFactory steps;

    @Bean
    public Job testJob() throws Exception {
      SimpleJobBuilder builder = jobs.get("test").start(step1()).next(step2());
      return builder.build();
    }

    @Bean
    protected Step step1() throws Exception {
      return steps.get("step1").tasklet(tasklet()).build();
View Full Code Here

    private Tasklet tasklet;

    @Bean
    public Job anotherJob() throws Exception {
      SimpleJobBuilder builder = jobs.get("another").start(step3());
      return builder.build();
    }

    @Bean
    protected Step step3() throws Exception {
      return steps.get("step3").tasklet(tasklet).build();
View Full Code Here

    private SimpleBatchConfiguration jobs;

    @Bean
    public Job testConfigererJob() throws Exception {
      SimpleJobBuilder builder = jobs.jobBuilders().get("configurer").start(step1());
      return builder.build();
    }

    @Bean
    protected Step step1() throws Exception {
      AbstractStep step = new AbstractStep("step1") {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.