Package org.springframework.batch.repeat.exception

Examples of org.springframework.batch.repeat.exception.SimpleLimitExceptionHandler.afterPropertiesSet()


  @Test
  public void testExceptionHandler() throws Exception {
    SimpleStepFactoryBean<String, String> factory = getStepFactory(new String[] { "foo", "bar", "spam" });
    factory.setBeanName("exceptionStep");
    SimpleLimitExceptionHandler exceptionHandler = new SimpleLimitExceptionHandler(1);
    exceptionHandler.afterPropertiesSet();
    factory.setExceptionHandler(exceptionHandler);
    factory.setItemWriter(new ItemWriter<String>() {
      int count = 0;

      @Override
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.