title: Is it possible to use List<Object> instead of csv files in spring batch as input
body: <p>for a period of time i'm looking for a solution to resolve a problem with spring batch. I should use spring batch to reproduce/ create new csv files from csv files.
  Here an example:</p>
  
  <pre><code>outPut   | inPut
  ------   | ------
  File1    | source1
  File2    | source2 and source 3
  File3    | source1 and source2
  File4    | Csource3 
  </code></pre>
  
  <p>Here is an example to create the Output number one for example File1:</p>
  
  <pre><code> @Bean
          public Step step1() {
              return stepBuilderFactory.get("createFile1")
                      .&lt;source1, File1&gt; chunk(10)
                      .reader(source1Reader())
                      .processor(transformesource1ToFile1())
                      .writer(File1Writer())
                      .build();
          }
  </code></pre>
  
  <p>And this it will be the same for the other outPut Files, but as you can see some output use the same source,  in this fact i can't read the same data twice to repoduce a new output, so I tried to store them as resource on a map ( resource will be used more than ones) ie, i will have</p>
  
  <p><code>List&lt;source1&gt;, List&lt;source2&gt;, List&lt;source3&gt;</code> to access these sources again without passing by reader every time.</p>
  
  <p>Now my question is haw can i access/get these list in spring Batch in ItemProcessor / ItemWriter / itemReader ?</p>
  
  <p>can i inject /pass these List to an itemProcessor as it was the returned result of an itemReader </p>