RESOLVED - issue BATCH-742: Inclusion of a ResourceItemReader that will return resources (such as files in a directory) instead of records from a single resource.
http://jira.springframework.org/browse/BATCH-742
This commit is contained in:
@@ -63,16 +63,13 @@ public class ResourcesItemReader extends ExecutionContextUserSupport implements
|
||||
return resources[index];
|
||||
}
|
||||
|
||||
@Override
|
||||
public void close() throws ItemStreamException {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void open(ExecutionContext executionContext) throws ItemStreamException {
|
||||
counter.set(executionContext.getInt(getKey("COUNT"), 0));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void update(ExecutionContext executionContext) throws ItemStreamException {
|
||||
executionContext.putInt(getKey("COUNT"), counter.get());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user