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

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


      fail();
    } catch (IllegalArgumentException expected) {
      assertEquals("JobLocator must not be null.", expected.getMessage());
    }

    factoryBean.setJobLocator(new MapJobRegistry());

    try {
      factoryBean.afterPropertiesSet();
      fail();
    } catch (IllegalArgumentException expected) {
View Full Code Here


 
  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

      }
    };

    jobOperator = new SimpleJobOperator();

    jobOperator.setJobRegistry(new MapJobRegistry() {
      @Override
      public Job getJob(String name) throws NoSuchJobException {
        if (name.equals("foo")) {
          return job;
        }
View Full Code Here

    }
    BatchConfigurer configurer = getConfigurer(context.getBeansOfType(BatchConfigurer.class).values());
    jobRepository.set(configurer.getJobRepository());
    jobLauncher.set(configurer.getJobLauncher());
    transactionManager.set(configurer.getTransactionManager());
    jobRegistry.set(new MapJobRegistry());
    jobExplorer.set(configurer.getJobExplorer());
    initialized = true;
  }
View Full Code Here

  @Bean
  public abstract JobExplorer jobExplorer() throws Exception;

  @Bean
  public JobRegistry jobRegistry() throws Exception {
    return new MapJobRegistry();
  }
View Full Code Here

TOP

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

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.