Class FlatFileItemReaderAutoConfiguration
java.lang.Object
org.springframework.cloud.task.batch.autoconfigure.flatfile.FlatFileItemReaderAutoConfiguration
@AutoConfiguration
@EnableConfigurationProperties(FlatFileItemReaderProperties.class)
@AutoConfigureAfter(org.springframework.boot.autoconfigure.batch.BatchAutoConfiguration.class)
public class FlatFileItemReaderAutoConfiguration
extends Object
Autconfiguration for a
FlatFileItemReader
.- Since:
- 2.3
- Author:
- Michael Minella, Glenn Renfro
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
AFieldSetMapper
that takes aFieldSet
and returns theMap<String, Object>
of its contents. -
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionitemReader
(org.springframework.batch.item.file.transform.LineTokenizer lineTokenizer, org.springframework.batch.item.file.mapping.FieldSetMapper<Map<String, Object>> fieldSetMapper, org.springframework.batch.item.file.LineMapper<Map<String, Object>> lineMapper, org.springframework.batch.item.file.LineCallbackHandler skippedLinesCallback, org.springframework.batch.item.file.separator.RecordSeparatorPolicy recordSeparatorPolicy)
-
Constructor Details
-
FlatFileItemReaderAutoConfiguration
-
-
Method Details
-
itemReader
@Bean @ConditionalOnMissingBean @ConditionalOnProperty(prefix="spring.batch.job.flatfileitemreader", name="name") public org.springframework.batch.item.file.FlatFileItemReader<Map<String,Object>> itemReader(@Autowired(required=false) org.springframework.batch.item.file.transform.LineTokenizer lineTokenizer, @Autowired(required=false) org.springframework.batch.item.file.mapping.FieldSetMapper<Map<String, Object>> fieldSetMapper, @Autowired(required=false) org.springframework.batch.item.file.LineMapper<Map<String, Object>> lineMapper, @Autowired(required=false) org.springframework.batch.item.file.LineCallbackHandler skippedLinesCallback, @Autowired(required=false) org.springframework.batch.item.file.separator.RecordSeparatorPolicy recordSeparatorPolicy)
-