Thanks for your reply Michael. Unfortunately, I don't understand it. I apologize, I should have provided more information in my original post. I have a reader setup like the follow
Code:
<bean name="compoundSensitivityEnrichmentReader" class="org.springframework.batch.item.file.MultiResourceItemReader">
<property name="resources" value="${data.location}" />
<property name="delegate">
<bean class="org.springframework.batch.item.file.FlatFileItemReader">
<property name="lineMapper" ref="compoundSensitivityEnrichmentLineMapper" />
<property name="linesToSkip" value="1" />
</bean>
</property>
</bean>
At some point, execution makes its way into my class which implements FieldSetMapper:
Code:
public class ObservationDataFieldSetMapper implements FieldSetMapper<ObservationData> {
...
public ObservationData mapFieldSet(FieldSet fieldSet) throws BindException {
...
I'd like to be able to determine the resource name so I can use it within mapFieldSet(...). Is this possible? If so, how?
Thanks,
Benjamin