Examples of MapJobRegistry


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

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

 
  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

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

      }
    };

    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

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

    }
    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

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

  @Bean
  public abstract JobExplorer jobExplorer() throws Exception;

  @Bean
  public JobRegistry jobRegistry() throws Exception {
    return new MapJobRegistry();
  }
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.