Package org.springframework.batch.item

Examples of org.springframework.batch.item.ItemProcessor


    GenericBeanDefinition bd = new GenericBeanDefinition();
    bd.setBeanClass(AutowiredAnnotationBeanPostProcessor.class);
    context.registerBeanDefinition("postProcessor", bd);
    context.refresh();

    ItemProcessor itemProcessor = context.getBean(ItemProcessor.class);

    assertNotNull(itemProcessor);
    StepSynchronizationManager.register(new StepExecution("step1", new JobExecution(5l)));
    assertEquals("Test", itemProcessor.process("Test"));
    StepSynchronizationManager.close();

    context.close();
  }
View Full Code Here


    context.setValidating(false);
    context.load(overrideXml, batchXml);
    context.refresh();

    ItemProcessor itemProcessor = (ItemProcessor) context.getBean("itemProcessor");

    assertNotNull(itemProcessor);
    StepSynchronizationManager.register(new StepExecution("step1", new JobExecution(5l)));
    assertEquals("Test", itemProcessor.process("Test"));
    StepSynchronizationManager.close();

    context.close();
  }
View Full Code Here

    context.setValidating(false);
    context.load(batchXml, overrideXml);
    context.refresh();

    ItemProcessor processor = (ItemProcessor) context.getBean("itemProcessor");

    assertNotNull(processor);
    assertTrue(processor instanceof DummyItemProcessor);
    context.close();
  }
View Full Code Here

TOP

Related Classes of org.springframework.batch.item.ItemProcessor

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.