Package org.frankframework.batch
Interface IRecordHandlerManager
- All Known Implementing Classes:
FieldPositionRecordHandlerManager
,FixedPositionRecordHandlerManager
,RecordHandlerManager
Interface for handling a transformed record.
A RecordHandlerManager decides, based on some implementation dependent algorithm, which record handler
is to be used to process a record.
A record manager keeps a table of flow-elements, that each define a recordhandler, resulthandler and,
optionally, a next-manager.
- Author:
- John Dekker
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addHandler
(RecordHandlingFlow flow) Flow to be added to the managed flow elementsvoid
configure
(Map<String, IRecordHandlerManager> registeredManagers, Map<String, IRecordHandler> registeredRecordHandlers, Map<String, IResultHandler> registeredResultHandlers, IResultHandler defaultHandler) getRecordFactoryUsingFilename
(PipeLineSession session, String filename) getRecordHandler
(PipeLineSession session, String record) boolean
void
setInitial
(boolean initialFactory) indicates if this manager is the initial manager
-
Method Details
-
configure
void configure(Map<String, IRecordHandlerManager> registeredManagers, Map<String, throws ConfigurationExceptionIRecordHandler> registeredRecordHandlers, Map<String, IResultHandler> registeredResultHandlers, IResultHandler defaultHandler) - Throws:
ConfigurationException
-
addHandler
Flow to be added to the managed flow elements -
getRecordHandler
- Returns:
- the RecordHandlingFlow element to be used to handle the record
- Throws:
Exception
-
getRecordFactoryUsingFilename
- Returns:
- the IRecordHandlingManager to be used initially based on the name of the input file
-
setInitial
void setInitial(boolean initialFactory) indicates if this manager is the initial manager -
isInitial
boolean isInitial()
-