Package org.springframework.batch.core.configuration.support

Examples of org.springframework.batch.core.configuration.support.DefaultJobLoader


 
  private JobService jobService = EasyMock.createMock(JobService.class);

  @Before
  public void setUp() throws Exception {
    loader.setJobLoader(new DefaultJobLoader(new MapJobRegistry()));
    loader.setJobService(jobService);
    expect(jobService.countJobExecutionsForJob("job")).andReturn(2);
    expect(jobService.isIncrementable("job")).andReturn(true);
    expect(jobService.isLaunchable("job")).andReturn(true);
    replay(jobService);
View Full Code Here


    return getConfigurer(configurers).getJobExplorer();
  }

  @Bean
  public AutomaticJobRegistrar jobRegistrar() throws Exception {
    registrar.setJobLoader(new DefaultJobLoader(jobRegistry()));
    for (ApplicationContextFactory factory : context.getBeansOfType(ApplicationContextFactory.class).values()) {
      registrar.addApplicationContextFactory(factory);
    }
    return registrar;
  }
View Full Code Here

      if (parentContext.containsBean("jobLoader")) {
        jobLoader = parentContext.getBean("jobLoader", JobLoader.class);
        return;
      }
      if (jobRegistry != null) {
        jobLoader = new DefaultJobLoader(jobRegistry);
        return;
      }
    }

    jobLoader = parentContext.getBean(names[0], JobLoader.class);
View Full Code Here

TOP

Related Classes of org.springframework.batch.core.configuration.support.DefaultJobLoader

Copyright © 2018 www.massapicom. 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.