Examples of ItemProcessor


Examples of org.jberet.job.ItemProcessor

        if (!oldVal.equals(newVal)) {
            writer.setRef(newVal);
        }
        resolve(writer.getProperties(), true);

        ItemProcessor processor = chunk.getProcessor();
        if (processor != null) {
            oldVal = processor.getRef();
            newVal = resolve(oldVal);
            if (!oldVal.equals(newVal)) {
                processor.setRef(newVal);
            }
            resolve(processor.getProperties(), true);
        }

        CheckpointAlgorithm checkpointAlgorithm = chunk.getCheckpointAlgorithm();
        if (checkpointAlgorithm != null) {
            oldVal = checkpointAlgorithm.getRef();
View Full Code Here

Examples of org.pokenet.server.backend.ItemProcessor

        break;
      case 'I':
        //Use an item, applies inside and outside of battle
        details = message.substring(1).split(",");
        System.out.println("Item used. "+message);
        new Thread(new ItemProcessor(p, details)).start();
        break;
      case 'i':
        //Drop item
        if(p.getBag().removeItem(Integer.parseInt(message.substring(1)), 1)) {
          TcpProtocolHandler.writeMessage(p.getTcpSession(), new ItemMessage(false,
View Full Code Here

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

Examples of org.springframework.batch.item.ItemProcessor

    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

Examples of org.springframework.batch.item.ItemProcessor

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