View Javadoc

1   package org.springframework.batch.item;
2   
3   import org.springframework.core.io.Resource;
4   import org.springframework.batch.item.file.MultiResourceItemReader;
5   
6   /**
7    * Marker interface indicating that an item should have the Spring {@link Resource} in which it was read from, set on it.
8    * The canonical example is within {@link MultiResourceItemReader}, which will set the current resource on any items
9    * that implement this interface.
10   *
11   * @author Lucas Ward
12   */
13  public interface ResourceAware {
14  
15      void setResource(Resource resource);
16  }