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:
dsyer
2009-09-21 07:52:07 +00:00
parent eda5e09b8b
commit 2f4530547f

View File

@@ -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());
}