Examples of ItemWriter


Examples of org.atc.tools.ant.writers.ItemWriter

    if (shouldWriteToProperty) {
      getProject().setNewProperty(Configuration.property, optBuffer.toString());
    }

    ItemWriter itemWriter = itemWriterMap.get(Configuration.optFormat);
    vlog(format("Writing using itemWriter '%s'", itemWriter));

    if (itemWriter == null) {
      itemWriter = itemWriterMap.get(Format.DEFAULT);
      log(format("Warning: using DEFAULT output format because I couldn't find a writer for '%s'", Configuration.optFormat));
    }

    itemWriter.write(outStream, itemsList);
    outStream.flush();
    outStream.close();
  }
View Full Code Here

Examples of org.jberet.job.ItemWriter

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

        ItemWriter writer = chunk.getWriter();
        oldVal = writer.getRef();
        newVal = resolve(oldVal);
        if (!oldVal.equals(newVal)) {
            writer.setRef(newVal);
        }
        resolve(writer.getProperties(), true);

        ItemProcessor processor = chunk.getProcessor();
        if (processor != null) {
            oldVal = processor.getRef();
            newVal = resolve(oldVal);
View Full Code Here

Examples of org.springframework.batch.item.ItemWriter

  @Test
  public void testRemoteChunkingMasterParser() {
    ApplicationContext applicationContext =
        new ClassPathXmlApplicationContext("/org/springframework/batch/integration/config/xml/RemoteChunkingMasterParserTests.xml");

    ItemWriter itemWriter = applicationContext.getBean("itemWriter", ChunkMessageChannelItemWriter.class);
    assertNotNull("Messaging template must not be null", TestUtils.getPropertyValue(itemWriter, "messagingGateway"));
    assertNotNull("Reply channel must not be null", TestUtils.getPropertyValue(itemWriter, "replyChannel"));

    FactoryBean remoteChunkingHandlerFactoryBean = applicationContext.getBean(RemoteChunkHandlerFactoryBean.class);
    assertNotNull("Chunk writer must not be null", TestUtils.getPropertyValue(remoteChunkingHandlerFactoryBean, "chunkWriter"));
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.