public class DataTypeProcessorRegistry extends AbstractComponentRegistry<RecordProcessor> implements org.springframework.context.ApplicationContextAware
ComponentRegistry for mapping input file data types to their appropriate
RecordProcessor beans. Uses the DataTypes annotation of existing processor
classes to identify valid beans.| Constructor and Description |
|---|
DataTypeProcessorRegistry() |
DataTypeProcessorRegistry(org.springframework.context.ApplicationContext applicationContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Class<? extends RecordProcessor> type)
Searches the
ApplicationContext for RecordProcessor beans and attempts to
register them. |
void |
add(RecordProcessor processor)
Adds a new data type processor mapping, if the submitted processor has a
DataTypes
annotation or implements the DataTypeSupport interface. |
void |
configure()
Configures the registry object and builds the object mappings.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
add, exists, exists, find, getRegisteredComponents, getRegistry, setRegistrypublic DataTypeProcessorRegistry()
public DataTypeProcessorRegistry(org.springframework.context.ApplicationContext applicationContext)
@PostConstruct public void configure()
public void add(RecordProcessor processor)
DataTypes
annotation or implements the DataTypeSupport interface.add in interface ComponentRegistry<RecordProcessor>processor - public void add(Class<? extends RecordProcessor> type)
ApplicationContext for RecordProcessor beans and attempts to
register them.type - @Autowired
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionCopyright © 2016. All rights reserved.